Support route query in TagView (#765)

This commit is contained in:
临书
2018-06-12 13:53:56 +08:00
committed by 花裤衩
parent c93fcefe54
commit 2a590a2087
2 changed files with 3 additions and 5 deletions

View File

@@ -2,7 +2,7 @@
<div class="tags-view-container">
<scroll-pane class='tags-view-wrapper' ref='scrollPane'>
<router-link ref='tag' class="tags-view-item" :class="isActive(tag)?'active':''" v-for="tag in Array.from(visitedViews)"
:to="tag.path" :key="tag.path" @contextmenu.prevent.native="openMenu(tag,$event)">
:to="tag" :key="tag.path" @contextmenu.prevent.native="openMenu(tag,$event)">
{{generateTitle(tag.title)}}
<span class='el-icon-close' @click.prevent.stop='closeSelectedTag(tag)'></span>
</router-link>