From fe25c4d96b6a291ca4dc47ea7f570d3b6641cd8d Mon Sep 17 00:00:00 2001 From: tlx6550 <912730337@qq.com> Date: Fri, 22 Dec 2017 10:29:47 +0800 Subject: [PATCH] fix[tags-view]: fixed bug in DEL_OTHERS_VIEWS (#368) --- src/store/modules/tagsView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/modules/tagsView.js b/src/store/modules/tagsView.js index 273d33bd..ea62c965 100644 --- a/src/store/modules/tagsView.js +++ b/src/store/modules/tagsView.js @@ -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, 1) + state.cachedViews.splice(index, index + 1) break } }