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){ 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

View File

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