From c55ab210d9f4435c93fd013063b5f132f72fd08e Mon Sep 17 00:00:00 2001 From: xuyuanqing <392009588@qq.com> Date: Mon, 4 Dec 2023 15:21:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E4=BA=A4=E6=98=93=E9=80=80?= =?UTF-8?q?=E5=87=BA=E8=B7=B3=E8=BD=AC=E3=80=81=E6=B5=81=E7=A8=8B=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/user/index.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/user/index.vue b/src/views/user/index.vue index 1a6a78c9..f870faba 100644 --- a/src/views/user/index.vue +++ b/src/views/user/index.vue @@ -106,7 +106,7 @@ export default { for(var i = keys.length; i--;) document.cookie = keys[i] + '=0;expires=' + new Date(0).toUTCString() } - this.$router.push({name:'index'}) + this.$router.push({ path: "/index" }); }); }, getInfo(){ @@ -120,7 +120,10 @@ export default { this.activitiStatus = response.data.activitiStatus; this.instanceId = response.data.instanceId; this.memberType = response.data.memberType; - this.getHistoryList() + if(this.instanceId !== "" && this.instanceId != null){ + this.getHistoryList() + } + }); }); },