完成登录、注册、找回密码功能

This commit is contained in:
gooking 2018-05-15 08:32:37 +08:00
parent 29d322e345
commit 8555361097
1 changed files with 9 additions and 2 deletions

View File

@ -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