修改设置tags为全路径
parent
debd824a69
commit
32c184ecbe
|
@ -58,11 +58,11 @@
|
||||||
// 设置标签
|
// 设置标签
|
||||||
setTags(route){
|
setTags(route){
|
||||||
const isExist = this.tagsList.some(item => {
|
const isExist = this.tagsList.some(item => {
|
||||||
return item.path === route.path;
|
return item.path === route.fullpath;
|
||||||
})
|
})
|
||||||
!isExist && this.tagsList.push({
|
!isExist && this.tagsList.push({
|
||||||
title: route.meta.title,
|
title: route.meta.title,
|
||||||
path: route.path
|
path: route.fullpath
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleTags(command){
|
handleTags(command){
|
||||||
|
|
Loading…
Reference in New Issue