|
@@ -1,12 +1,13 @@
|
|
|
<template>
|
|
|
<div id="tags-view-container" class="tags-view-container">
|
|
|
<scroll-pane ref="scrollPane" class="tags-view-wrapper" @scroll="handleScroll">
|
|
|
+ <!-- :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"-->
|
|
|
<router-link
|
|
|
v-for="tag in visitedViews"
|
|
|
ref="tag"
|
|
|
:key="tag.path"
|
|
|
:class="isActive(tag)?'active':''"
|
|
|
- :to="{ path: tag.path, query: tag.query, fullPath: tag.fullPath }"
|
|
|
+ :to="{ name: tag.name, params: tag.params, fullPath: tag.fullPath }"
|
|
|
tag="span"
|
|
|
class="tags-view-item"
|
|
|
:style="activeStyle(tag)"
|
|
@@ -43,6 +44,7 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
visitedViews() {
|
|
|
+ console.log(this.$store.state.tagsView.visitedViews)
|
|
|
return this.$store.state.tagsView.visitedViews
|
|
|
},
|
|
|
routes() {
|
|
@@ -68,6 +70,7 @@ export default {
|
|
|
mounted() {
|
|
|
this.initTags()
|
|
|
this.addTags()
|
|
|
+ console.log(this.visitedViews)
|
|
|
},
|
|
|
methods: {
|
|
|
isActive(route) {
|