This commit is contained in:
sc 2021-07-30 12:16:03 +08:00
parent 64b942280e
commit 84a255bb33
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -61,7 +61,6 @@
mounted() {
if(this.id){
//tag
//updateViewTagsTitle 2fullPath
this.$store.commit("updateViewTagsTitle", `详情ID:${this.id}`)
}
},