"eladmin-system/src/main/vscode:/vscode.git/clone" did not exist on "a90bfac2cf3324ca47f155e6a90a02280fc7fcd9"
Commit 9d030948 authored by RuoYi's avatar RuoYi
Browse files

修复页签变量undefined

parent 4b773784
...@@ -38,6 +38,7 @@ const mutations = { ...@@ -38,6 +38,7 @@ const mutations = {
}) })
}, },
DEL_OTHERS_CACHED_VIEWS: (state, view) => { DEL_OTHERS_CACHED_VIEWS: (state, view) => {
const index = state.cachedViews.indexOf(view.name)
if (index > -1) { if (index > -1) {
state.cachedViews = state.cachedViews.slice(index, index + 1) state.cachedViews = state.cachedViews.slice(index, index + 1)
} else { } else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment