From 393f9b71cd6f7f67f26667fa984de8ffc48b45bf Mon Sep 17 00:00:00 2001 From: lin <342011128@qq.com> Date: Mon, 21 Mar 2022 19:11:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1.修改记住登录态的方法 --- rc-busness/pages/userlogin/login.vue | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/rc-busness/pages/userlogin/login.vue b/rc-busness/pages/userlogin/login.vue index 86f3a39a..623ac748 100644 --- a/rc-busness/pages/userlogin/login.vue +++ b/rc-busness/pages/userlogin/login.vue @@ -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 () {