FIX 登出后还保留VUEX状态(缓存和标签)的问题
This commit is contained in:
parent
5ed7f314e8
commit
64ba3854e0
|
|
@ -17,7 +17,7 @@ export default {
|
|||
}
|
||||
},
|
||||
clearKeepLive(state){
|
||||
state.keepLiveRoute = []
|
||||
state.keepLiveRoute = ['empty']
|
||||
},
|
||||
setRouteKey(state, key){
|
||||
state.routeKey = key
|
||||
|
|
|
|||
|
|
@ -124,6 +124,8 @@
|
|||
},
|
||||
created: function() {
|
||||
this.$TOOL.data.remove("user")
|
||||
this.$store.commit("clearViewTags")
|
||||
this.$store.commit("clearKeepLive")
|
||||
},
|
||||
methods: {
|
||||
submitForm(formName, type) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue