Commit 9d0309489cd91b3f0b05d56394ccd7d45244abe9

Authored by RuoYi
1 parent 4b773784

修复页签变量undefined

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