Skip to content

Commit fe25c4d

Browse files
tlx6550PanJiaChen
authored andcommitted
fix[tags-view]: fixed bug in DEL_OTHERS_VIEWS (PanJiaChen#368)
1 parent 7fef856 commit fe25c4d

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
@@ -25,7 +25,7 @@ const tagsView = {
2525
for (const i of state.cachedViews) {
2626
if (i === view.name) {
2727
const index = state.cachedViews.indexOf(i)
28-
state.cachedViews.splice(index, 1)
28+
state.cachedViews.splice(index, index + 1)
2929
break
3030
}
3131
}

0 commit comments

Comments
 (0)