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