From 9d0309489cd91b3f0b05d56394ccd7d45244abe9 Mon Sep 17 00:00:00 2001 From: RuoYi Date: Thu, 7 May 2020 12:28:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A1=B5=E7=AD=BE=E5=8F=98?= =?UTF-8?q?=E9=87=8Fundefined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/store/modules/tagsView.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ruoyi-ui/src/store/modules/tagsView.js b/ruoyi-ui/src/store/modules/tagsView.js index 476e55572..abec62289 100644 --- a/ruoyi-ui/src/store/modules/tagsView.js +++ b/ruoyi-ui/src/store/modules/tagsView.js @@ -38,6 +38,7 @@ const mutations = { }) }, DEL_OTHERS_CACHED_VIEWS: (state, view) => { + const index = state.cachedViews.indexOf(view.name) if (index > -1) { state.cachedViews = state.cachedViews.slice(index, index + 1) } else {