From bd506fab0d24e565e3893f8ecb1bd089ebb77571 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=A3=E5=8F=A3=E5=8F=A3?= <17975121@qq.com> Date: Wed, 20 Aug 2025 03:32:41 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/store/modules/tagsView.ts.=20?= =?UTF-8?q?=E5=BD=93=E5=AD=98=E5=9C=A8=E5=A4=9A=E4=B8=AA=E7=9B=B8=E5=90=8C?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E7=9A=84=E6=A0=87=E7=AD=BE=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E7=BC=93=E5=AD=98=E5=BA=94=E8=AF=A5=E6=8E=92?= =?UTF-8?q?=E9=99=A4=E6=98=AF=E5=90=A6=E5=AD=98=E5=9C=A8=E7=9B=B8=E5=90=8C?= =?UTF-8?q?=E7=9A=84=E5=90=8D=E7=A7=B0=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 口口口 <17975121@qq.com> --- src/store/modules/tagsView.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/store/modules/tagsView.ts b/src/store/modules/tagsView.ts index 2b2d817f1..6dd509358 100644 --- a/src/store/modules/tagsView.ts +++ b/src/store/modules/tagsView.ts @@ -93,6 +93,11 @@ export const useTagsViewStore = defineStore('tagsView', { delCachedView() { const route = router.currentRoute.value const index = findIndex(this.getCachedViews, (v) => v === route.name) + for (const v of this.visitedViews) { + if (v.name === route.name) { + return + } + } if (index > -1) { this.cachedViews.delete(this.getCachedViews[index]) } -- Gitee