Commit 9d0309489cd91b3f0b05d56394ccd7d45244abe9
1 parent
4b773784
修复页签变量undefined
Showing
1 changed file
with
1 additions
and
0 deletions
ruoyi-ui/src/store/modules/tagsView.js
| @@ -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 { |