diff --git a/src/components/TagsView/src/TagsView.vue b/src/components/TagsView/src/TagsView.vue index f0fea2b..4478fee 100644 --- a/src/components/TagsView/src/TagsView.vue +++ b/src/components/TagsView/src/TagsView.vue @@ -86,6 +86,7 @@ const closeRightTags = () => { tagsViewStore.delRightViews(unref(selectedTag) as RouteLocationNormalizedLoaded) } +// 跳转到最后一个 const toLastView = () => { const visitedViews = tagsViewStore.getVisitedViews const latestView = visitedViews.slice(-1)[0] @@ -104,6 +105,7 @@ const toLastView = () => { } } +// 是否是当前tag const isActive = (route: RouteLocationNormalizedLoaded): boolean => { return route.path === unref(currentRoute).path } @@ -198,7 +200,7 @@ watch( ]" > -
+
{{ t(item?.meta?.title as string) }}