fix[TagsView]: fixed visitedViews bug

Some strange bugs occur when the names of the routes are the same.
This commit is contained in:
Pan 2018-10-08 17:19:32 +08:00
parent 1f6010612f
commit 65ac600b54
1 changed files with 2 additions and 2 deletions

View File

@ -2,10 +2,10 @@
<div class="tags-view-container">
<scroll-pane ref="scrollPane" class="tags-view-wrapper">
<router-link
v-for="tag in Array.from(visitedViews)"
v-for="tag in visitedViews"
ref="tag"
:class="isActive(tag)?'active':''"
:to="tag"
:to="tag.fullPath"
:key="tag.path"
tag="span"
class="tags-view-item"