新增keep-alive

This commit is contained in:
zouzhibing 2022-05-30 15:37:46 +08:00
parent dd15e27ab3
commit 72077d1c28
2 changed files with 1 additions and 2 deletions

View File

@ -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,

View File

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