diff --git a/src/store/modules/tagsView.ts b/src/store/modules/tagsView.ts index 6dd50935..b5406351 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]) }