diff --git a/src/store/modules/tagsView.js b/src/store/modules/tagsView.js index 1fccaf6919b162fdedcba9251095afd0136bd896..273d33bdcf3828af7bfc3aff6e1befa1611c6c8f 100644 --- a/src/store/modules/tagsView.js +++ b/src/store/modules/tagsView.js @@ -30,17 +30,17 @@ const tagsView = { } } }, - DEL_OTHER_VIEWS: (state, view) => { + DEL_OTHERS_VIEWS: (state, view) => { for (const [i, v] of state.visitedViews.entries()) { if (v.path === view.path) { - state.visitedViews = [].concat(state.visitedViews.slice(i, i + 1)) + state.visitedViews = state.visitedViews.slice(i, i + 1) break } } for (const i of state.cachedViews) { if (i === view.name) { const index = state.cachedViews.indexOf(i) - state.cachedViews = [].concat(state.cachedViews.slice(index, i + 1)) + state.cachedViews = state.cachedViews.slice(index, i + 1) break } } @@ -60,9 +60,9 @@ const tagsView = { resolve([...state.visitedViews]) }) }, - delOtherViews({ commit, state }, view) { + delOthersViews({ commit, state }, view) { return new Promise((resolve) => { - commit('DEL_OTHER_VIEWS', view) + commit('DEL_OTHERS_VIEWS', view) resolve([...state.visitedViews]) }) }, diff --git a/src/views/layout/components/TagsView.vue b/src/views/layout/components/TagsView.vue index 018e8d47c2dec9294ede920a7dd1aa18eec25c62..38a906a0ed7b58604f1299e68051997bfda050b8 100644 --- a/src/views/layout/components/TagsView.vue +++ b/src/views/layout/components/TagsView.vue @@ -1,199 +1,201 @@