From 5f20bfc780c42fc8712dfe5a958b2f5f2bf71385 Mon Sep 17 00:00:00 2001 From: mimimi Date: Wed, 25 Jul 2018 17:20:32 +0800 Subject: [PATCH] fixed[tagsView]: DEL_OTHERS_VIEWS cachedViews bug (#913) * mutations DEL_OTHERS_VIEWS state.cachedViews -> i type is string slice(begin: number, end: number) --- 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 06d092c9..25d513cd 100644 --- a/src/store/modules/tagsView.js +++ b/src/store/modules/tagsView.js @@ -38,7 +38,7 @@ const tagsView = { for (const i of state.cachedViews) { if (i === view.name) { const index = state.cachedViews.indexOf(i) - state.cachedViews = state.cachedViews.slice(index, i + 1) + state.cachedViews = state.cachedViews.slice(index, index + 1) break } }