正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
| @@ -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 { |
-
请 注册 或 登录 后发表评论