From 915f1fc3a91a40b3e67142f51e2f616d01e973cc Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sat, 22 Nov 2025 19:49:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=80=90framework=E3=80=91=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E7=BC=93=E5=AD=98=E5=A4=B1=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E5=AF=B9=E5=BA=94=20https://github.com/yudao?= =?UTF-8?q?code/yudao-ui-admin-vue3/issues/180?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/modules/tagsView.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/store/modules/tagsView.ts b/src/store/modules/tagsView.ts index 6dd509358..b54063512 100644 --- a/src/store/modules/tagsView.ts +++ b/src/store/modules/tagsView.ts @@ -93,11 +93,12 @@ 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 - } - } + // 需要注释,解决“标签页刷新无效”。相关案例:https://github.com/yudaocode/yudao-ui-admin-vue3/issues/180 + // for (const v of this.visitedViews) { + // if (v.name === route.name) { + // return + // } + // } if (index > -1) { this.cachedViews.delete(this.getCachedViews[index]) }