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