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