|
@@ -38,6 +38,7 @@
|
|
|
let user = response.model;
|
|
|
userid = user.userId;
|
|
|
localStorage.setItem('frontend-userid', userid);
|
|
|
+ this.$router.push('index');
|
|
|
} else {
|
|
|
// 失败的处理
|
|
|
console.warn("获取用户信息失败");
|
|
@@ -46,7 +47,7 @@
|
|
|
}, {});
|
|
|
// if (userid.length === 0) this.$router.push('warning');
|
|
|
// else this.$router.push('index');
|
|
|
- //this.$router.push('index');
|
|
|
+ //
|
|
|
}
|
|
|
}
|
|
|
|