Commit 18460b81 by 姜雷

登陆跳转路由第一个页面

parent f61d3230
...@@ -85,9 +85,9 @@ export default { ...@@ -85,9 +85,9 @@ export default {
this.$refs.loginForm.validate(valid => { this.$refs.loginForm.validate(valid => {
if (valid) { if (valid) {
this.Login(this.loginForm) this.Login(this.loginForm)
.then(() => { .then(path => {
console.log('login done'); console.log('login done');
this.$router.push({ path: '/' }); this.$router.push({ path: path });
}) })
.catch(err => { .catch(err => {
console.log(err); console.log(err);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment