修复页签变量undefined

This commit is contained in:
RuoYi 2020-05-07 12:28:59 +08:00
parent 4b77378458
commit 9d0309489c

View File

@ -38,6 +38,7 @@ const mutations = {
})
},
DEL_OTHERS_CACHED_VIEWS: (state, view) => {
const index = state.cachedViews.indexOf(view.name)
if (index > -1) {
state.cachedViews = state.cachedViews.slice(index, index + 1)
} else {