FIX
This commit is contained in:
parent
64b942280e
commit
84a255bb33
|
@ -24,8 +24,8 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
updateViewTagsTitle(state, title='', fullPath){
|
updateViewTagsTitle(state, title=''){
|
||||||
const nowFullPath = fullPath || location.hash.substring(1)
|
const nowFullPath = location.hash.substring(1)
|
||||||
state.viewTags.forEach((item) => {
|
state.viewTags.forEach((item) => {
|
||||||
if (item.fullPath == nowFullPath){
|
if (item.fullPath == nowFullPath){
|
||||||
item.meta.title = title
|
item.meta.title = title
|
||||||
|
|
|
@ -61,7 +61,6 @@
|
||||||
mounted() {
|
mounted() {
|
||||||
if(this.id){
|
if(this.id){
|
||||||
//更改tag标签
|
//更改tag标签
|
||||||
//updateViewTagsTitle 可携带第2个参数,要更改哪个fullPath的标题,不设置就是变更当前
|
|
||||||
this.$store.commit("updateViewTagsTitle", `详情ID:${this.id}`)
|
this.$store.commit("updateViewTagsTitle", `详情ID:${this.id}`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue