fix[tags-view]: fixed delete cachedViews bug #395

This commit is contained in:
Pan 2018-01-12 13:30:27 +08:00
parent 76a6eb12e7
commit 3c0696d1a9

View file

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