|
@@ -1,13 +1,12 @@
|
|
|
<template>
|
|
|
<div id="tags-view-container" class="tags-view-container">
|
|
|
<scroll-pane ref="scrollPane" class="tags-view-wrapper" @scroll="handleScroll">
|
|
|
-<!-- path: tag.path-->
|
|
|
<router-link
|
|
|
v-for="tag in visitedViews"
|
|
|
ref="tag"
|
|
|
:key="tag.path"
|
|
|
:class="isActive(tag)?'active':''"
|
|
|
- :to="{ name: tag.name, query: tag.query, fullPath: tag.fullPath }"
|
|
|
+ :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
|
|
|
tag="span"
|
|
|
class="tags-view-item"
|
|
|
@click.middle.native="!isAffix(tag)?closeSelectedTag(tag):''"
|
|
@@ -69,7 +68,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
isActive(route) {
|
|
|
- return route.name === this.$route.name
|
|
|
+ return route.path === this.$route.path
|
|
|
},
|
|
|
isAffix(tag) {
|
|
|
return tag.meta && tag.meta.affix
|