新增keep-alive
This commit is contained in:
parent
dd15e27ab3
commit
72077d1c28
|
|
@ -55,7 +55,6 @@
|
||||||
const mode = computed(()=>{
|
const mode = computed(()=>{
|
||||||
return store.state.setting.mode
|
return store.state.setting.mode
|
||||||
})
|
})
|
||||||
console.log('mode============',mode)
|
|
||||||
return{
|
return{
|
||||||
isCollapse,
|
isCollapse,
|
||||||
device,
|
device,
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ const mutations = {
|
||||||
if (view.meta.keepAlive) {
|
if (view.meta.keepAlive) {
|
||||||
|
|
||||||
state.cachedViews.push(view.name)
|
state.cachedViews.push(view.name)
|
||||||
console.log('======触发=======',state.cachedViews)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
REMOVE_VISITED_VIEW: (state, routes) => {
|
REMOVE_VISITED_VIEW: (state, routes) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue