fixed[tagsView]: DEL_OTHERS_VIEWS cachedViews bug (#913)

* mutations DEL_OTHERS_VIEWS state.cachedViews -> i type is string slice(begin: number, end: number)
This commit is contained in:
mimimi 2018-07-25 17:20:32 +08:00 committed by 花裤衩
parent 8851a68066
commit 5f20bfc780
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ const tagsView = {
for (const i of state.cachedViews) { for (const i of state.cachedViews) {
if (i === view.name) { if (i === view.name) {
const index = state.cachedViews.indexOf(i) const index = state.cachedViews.indexOf(i)
state.cachedViews = state.cachedViews.slice(index, i + 1) state.cachedViews = state.cachedViews.slice(index, index + 1)
break break
} }
} }