Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3c0696d

Browse files
committed
fix[tags-view]: fixed delete cachedViews bug PanJiaChen#395
1 parent 76a6eb1 commit 3c0696d

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, index + 1)
28+
state.cachedViews.splice(index, 1)
2929
break
3030
}
3131
}

0 commit comments

Comments
 (0)