Skip to content

Commit 5f20bfc

Browse files
mimimilePanJiaChen
authored andcommitted
fixed[tagsView]: DEL_OTHERS_VIEWS cachedViews bug (#913)
* mutations DEL_OTHERS_VIEWS state.cachedViews -> i type is string slice(begin: number, end: number)
1 parent 8851a68 commit 5f20bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/modules/tagsView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const tagsView = {
3838
for (const i of state.cachedViews) {
3939
if (i === view.name) {
4040
const index = state.cachedViews.indexOf(i)
41-
state.cachedViews = state.cachedViews.slice(index, i + 1)
41+
state.cachedViews = state.cachedViews.slice(index, index + 1)
4242
break
4343
}
4444
}

0 commit comments

Comments
 (0)