新增tab对象简化页签操作

This commit is contained in:
RuoYi
2021-11-19 14:53:40 +08:00
parent e41dd8a0f1
commit d1eacc1d1c
11 changed files with 102 additions and 26 deletions

View File

@ -14,7 +14,7 @@ const mutations = {
},
ADD_CACHED_VIEW: (state, view) => {
if (state.cachedViews.includes(view.name)) return
if (!view.meta.noCache) {
if (view.meta && !view.meta.noCache) {
state.cachedViews.push(view.name)
}
},