完成登录、注册、找回密码功能
This commit is contained in:
parent
29d322e345
commit
8555361097
|
@ -141,8 +141,15 @@ export default {
|
|||
})
|
||||
return;
|
||||
}
|
||||
setToken(res.data);
|
||||
this.$router.push({ path: '/' })
|
||||
Message({
|
||||
message: '登录成功',
|
||||
type: 'success',
|
||||
duration: 1 * 1000,
|
||||
onClose: () => {
|
||||
setToken(res.data);
|
||||
this.$router.push({ path: '/' })
|
||||
}
|
||||
})
|
||||
}).catch((err) => {
|
||||
console.log(err);
|
||||
this.loading = false
|
||||
|
|
Loading…
Reference in New Issue