File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/components/main/components/tags-nav Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export default {
116
116
let res = this .list .filter (item => routeEqual (this .currentRouteObj , item) || item .name === this .$config .homeName )
117
117
this .$emit (' on-close' , res, ' others' , this .currentRouteObj )
118
118
setTimeout (() => {
119
- this .getTagElementByName (this .currentRouteObj . name )
119
+ this .getTagElementByRoute (this .currentRouteObj )
120
120
}, 100 )
121
121
}
122
122
},
@@ -160,7 +160,7 @@ export default {
160
160
this .tagBodyLeft = - (tag .offsetLeft - (outerWidth - this .outerPadding - tag .offsetWidth ))
161
161
}
162
162
},
163
- getTagElementByName (route ) {
163
+ getTagElementByRoute (route ) {
164
164
this .$nextTick (() => {
165
165
this .refsTag = this .$refs .tagsPageOpened
166
166
this .refsTag .forEach ((item , index ) => {
@@ -186,7 +186,7 @@ export default {
186
186
},
187
187
watch: {
188
188
' $route' (to) {
189
- this .getTagElementByName (to)
189
+ this .getTagElementByRoute (to)
190
190
},
191
191
visible (value ) {
192
192
if (value) {
@@ -198,7 +198,7 @@ export default {
198
198
},
199
199
mounted () {
200
200
setTimeout (() => {
201
- this .getTagElementByName (this .$route )
201
+ this .getTagElementByRoute (this .$route )
202
202
}, 200 )
203
203
}
204
204
}
You can’t perform that action at this time.
0 commit comments