mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 01:14:50 +08:00
首次登录自动生成随机密码
This commit is contained in:
@@ -18,11 +18,15 @@ const Login = () => {
|
||||
},
|
||||
})
|
||||
.then((data) => {
|
||||
if (data.code == 200) {
|
||||
if (data.code === 200) {
|
||||
localStorage.setItem(config.authKey, data.token);
|
||||
history.push('/cookie');
|
||||
} else if (data.code === 100) {
|
||||
notification.warn({
|
||||
message: data.msg,
|
||||
});
|
||||
} else {
|
||||
notification.open({
|
||||
notification.error({
|
||||
message: data.msg,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user