mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-09-10 12:50:38 +08:00
完成登录、注册、找回密码功能
This commit is contained in:
parent
29d322e345
commit
8555361097
@ -141,8 +141,15 @@ export default {
|
|||||||
})
|
})
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setToken(res.data);
|
Message({
|
||||||
this.$router.push({ path: '/' })
|
message: '登录成功',
|
||||||
|
type: 'success',
|
||||||
|
duration: 1 * 1000,
|
||||||
|
onClose: () => {
|
||||||
|
setToken(res.data);
|
||||||
|
this.$router.push({ path: '/' })
|
||||||
|
}
|
||||||
|
})
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user