mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-02 02:06:38 +08:00
修改
1.修改记住登录态的方法
This commit is contained in:
parent
0f7931155a
commit
393f9b71cd
@ -226,11 +226,10 @@ export default {
|
||||
//console.log(this.$route.params);
|
||||
this.checkIsLogin();
|
||||
let user = this.$store.state.userInfo;
|
||||
if(user || this.userInfo) {
|
||||
console.log('333');
|
||||
// this.$router.push({
|
||||
// path: "/personal/mypersonal",
|
||||
// });
|
||||
if(user) {
|
||||
this.$router.push({
|
||||
path: "/personal/mypersonal",
|
||||
});
|
||||
}
|
||||
},
|
||||
// watch: function () {
|
||||
|
Loading…
Reference in New Issue
Block a user