1.修改记住登录态的方法
This commit is contained in:
lin 2022-03-21 19:11:38 +08:00
parent 0f7931155a
commit 393f9b71cd

View File

@ -226,11 +226,10 @@ export default {
//console.log(this.$route.params); //console.log(this.$route.params);
this.checkIsLogin(); this.checkIsLogin();
let user = this.$store.state.userInfo; let user = this.$store.state.userInfo;
if(user || this.userInfo) { if(user) {
console.log('333'); this.$router.push({
// this.$router.push({ path: "/personal/mypersonal",
// path: "/personal/mypersonal", });
// });
} }
}, },
// watch: function () { // watch: function () {