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