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) {