File tree 1 file changed +3
-3
lines changed
src/views/layout/components 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ export default {
72
72
const tags = this .$refs .tag
73
73
this .$nextTick (() => {
74
74
for (const tag of tags) {
75
- if (tag .to === this .$route .path ) {
75
+ if (tag .to . path === this .$route .path ) {
76
76
this .$refs .scrollPane .moveToTarget (tag .$el )
77
77
break
78
78
}
@@ -84,15 +84,15 @@ export default {
84
84
if (this .isActive (view)) {
85
85
const latestView = views .slice (- 1 )[0 ]
86
86
if (latestView) {
87
- this .$router .push (latestView . path )
87
+ this .$router .push (latestView)
88
88
} else {
89
89
this .$router .push (' /' )
90
90
}
91
91
}
92
92
})
93
93
},
94
94
closeOthersTags () {
95
- this .$router .push (this .selectedTag . path )
95
+ this .$router .push (this .selectedTag )
96
96
this .$store .dispatch (' delOthersViews' , this .selectedTag ).then (() => {
97
97
this .moveToCurrentTag ()
98
98
})
You can’t perform that action at this time.
0 commit comments