From 3c0696d1a9582924f6987e6db549836933a010f5 Mon Sep 17 00:00:00 2001
From: Pan <panfree23@gmail.com>
Date: Fri, 12 Jan 2018 13:30:27 +0800
Subject: [PATCH] fix[tags-view]: fixed delete cachedViews bug #395

---
 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 ea62c965..273d33bd 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, index + 1)
+          state.cachedViews.splice(index, 1)
           break
         }
       }
-- 
GitLab