소스 검색

修复页签变量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 {