From 64ba3854e0c1774d0e11f5398cc0ea819e29291e Mon Sep 17 00:00:00 2001 From: sc Date: Sat, 19 Jun 2021 12:43:43 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20=E7=99=BB=E5=87=BA=E5=90=8E=E8=BF=98?= =?UTF-8?q?=E4=BF=9D=E7=95=99VUEX=E7=8A=B6=E6=80=81(=E7=BC=93=E5=AD=98?= =?UTF-8?q?=E5=92=8C=E6=A0=87=E7=AD=BE)=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/keepAlive.js | 2 +- src/views/login.vue | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/store/modules/keepAlive.js b/src/store/modules/keepAlive.js index 1c5f2856..8b72a088 100644 --- a/src/store/modules/keepAlive.js +++ b/src/store/modules/keepAlive.js @@ -17,7 +17,7 @@ export default { } }, clearKeepLive(state){ - state.keepLiveRoute = [] + state.keepLiveRoute = ['empty'] }, setRouteKey(state, key){ state.routeKey = key diff --git a/src/views/login.vue b/src/views/login.vue index e321541c..8f374d83 100644 --- a/src/views/login.vue +++ b/src/views/login.vue @@ -124,6 +124,8 @@ }, created: function() { this.$TOOL.data.remove("user") + this.$store.commit("clearViewTags") + this.$store.commit("clearKeepLive") }, methods: { submitForm(formName, type) {