Skip to content

Commit ae2754a

Browse files
committed
fix[TagsView]: fixed visitedViews bug
Some strange bugs occur when the names of the routes are the same.
1 parent 6e07d18 commit ae2754a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/layout/components/TagsView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
<div class="tags-view-container">
33
<scroll-pane ref="scrollPane" class="tags-view-wrapper">
44
<router-link
5-
v-for="tag in Array.from(visitedViews)"
5+
v-for="tag in visitedViews"
66
ref="tag"
77
:class="isActive(tag)?'active':''"
8-
:to="tag"
8+
:to="tag.fullPath"
99
:key="tag.path"
1010
tag="span"
1111
class="tags-view-item"

0 commit comments

Comments
 (0)