Skip to content

标签页刷新无效 #180

@cogic

Description

@cogic

经排查是 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])
  }
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions