Browse Source

修复页签变量undefined

RuoYi 4 years ago
parent
commit
9d0309489c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      ruoyi-ui/src/store/modules/tagsView.js

+ 1 - 0
ruoyi-ui/src/store/modules/tagsView.js

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