Commit 9f4e6e70 authored by ganjingcun's avatar ganjingcun

完成验证邮箱跳转bbs

parent d00cf8d4
...@@ -166,8 +166,10 @@ export default { ...@@ -166,8 +166,10 @@ export default {
const { data } = yield call(activate, payload); const { data } = yield call(activate, payload);
if (data) { if (data) {
message.success(messages['Your-account-has-been-successfully-activated!'], 3); message.success(messages['Your-account-has-been-successfully-activated!'], 3);
window.location.href = "https://bbs.ygobbs.com"
} }
} catch (error) { } catch (error) {
window.location.href = "https://bbs.ygobbs.com"
console.error(error); console.error(error);
message.error(messages[error.message] || error.message, 3); message.error(messages[error.message] || error.message, 3);
} }
......
...@@ -73,7 +73,7 @@ class Register extends React.Component { ...@@ -73,7 +73,7 @@ class Register extends React.Component {
const usernameProps = { const usernameProps = {
hasFeedback: true, hasFeedback: true,
validateStatus: checkUsername, validateStatus: checkUsername,
extra: isUserNameExists ? 'username exists' : '', extra: isUserNameExists ? 'username exists or invalid ' : '',
}; };
const usernameInputProps = { const usernameInputProps = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment