瀏覽代碼

修复页签变量undefined

RuoYi 4 年之前
父節點
當前提交
9d0309489c
共有 1 個文件被更改,包括 1 次插入0 次删除
  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 {