1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-09-10 12:50:38 +08:00

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

This commit is contained in:
gooking 2018-05-15 08:32:37 +08:00
parent 29d322e345
commit 8555361097

View File

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