File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/views/layout/components Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5
5
v-for =" tag in visitedViews"
6
6
ref =" tag"
7
7
:class =" isActive(tag)?'active':''"
8
- :to =" tag.fullPath"
8
+ :to =" { path: tag.path, query: tag.query, fullPath: tag.fullPath } "
9
9
:key =" tag.path"
10
10
tag =" span"
11
11
class =" tags-view-item"
12
12
@click.middle.native =" closeSelectedTag(tag)"
13
13
@contextmenu.prevent.native =" openMenu(tag,$event)" >
14
14
{{ generateTitle(tag.title) }}
15
- <span class =" el-icon-close" @click.prevent.stop =" closeSelectedTag(tag)" />
15
+ <span class =" el-icon-close" @click.prevent.stop =" closeSelectedTag(tag)" />
16
16
</router-link >
17
17
</scroll-pane >
18
18
<ul v-show =" visible" :style =" {left:left+'px',top:top+'px'}" class =" contextmenu" >
@@ -75,7 +75,7 @@ export default {
75
75
const tags = this .$refs .tag
76
76
this .$nextTick (() => {
77
77
for (const tag of tags) {
78
- if (tag .to === this .$route .fullPath ) {
78
+ if (tag .to . path === this .$route .path ) {
79
79
this .$refs .scrollPane .moveToTarget (tag)
80
80
81
81
// when query is different then update
You can’t perform that action at this time.
0 commit comments