BUG 29578

This commit is contained in:
aixianling
2022-05-12 18:42:30 +08:00
parent 7de09aa195
commit d6d2e7b909
2 changed files with 9 additions and 4 deletions

View File

@@ -59,11 +59,12 @@ export default {
},
getTabs() {
let {name, query, hash} = this.$route
let tab = this.tabs.find(e => e.name == this.currentTab)
let tab = this.tabs.find(e => e.name == this.currentTab),
tabName = [name, query?.id, hash].join("")
if (tab) {
} else if (name) {
} else if (tabName) {
let menu = this.apps.find(e => e.name == name)
this.tabs.push({name, query, hash, label: menu?.label})
this.tabs.push({name: tabName, query, hash, label: menu?.label})
}
},
},