作者 RuoYi

修复页签变量undefined

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