-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
经排查是 tagsView.ts 中的 delCachedView 方法问题
delCachedView() {
const route = router.currentRoute.value
const index = findIndex<string>(this.getCachedViews, (v) => v === route.name)
// BUG 此 forof 导致标签页刷新无效
for (const v of this.visitedViews) {
if (v.name === route.name) {
return
}
}
if (index > -1) {
this.cachedViews.delete(this.getCachedViews[index])
}
}Copilot
Metadata
Metadata
Labels
bugSomething isn't workingSomething isn't working