CN-1087 fix: 代码整理,修复一些问题

This commit is contained in:
chenjinsong
2023-08-02 11:17:24 +08:00
parent a0eeeaeac8
commit 4941eac756
9 changed files with 935 additions and 3327 deletions

View File

@@ -391,7 +391,9 @@ export default {
this.dnsRcodeMapData = await getDnsMapData('dnsRcode')
}
}
this.initDropdownList()
if (this.$route.path.indexOf('panel') > -1) {
await this.initDropdownList()
}
},
setup () {
const { query } = useRoute()
@@ -435,6 +437,23 @@ export default {
type: entityDetailMenu.type
})
return true
} else if (this.route === '/entityGraph') {
const entityMenu = menus.find(m => m.route === '/entityExplorer')
const entityGraphMenu = menus.find(m => m.route === '/entityGraph')
console.info(entityGraphMenu)
breadcrumb.push({
code: entityMenu.code,
value: entityMenu.i18n ? this.$t(entityMenu.i18n) : entityMenu.name,
route: entityMenu.route,
type: entityMenu.type
})
breadcrumb.push({
code: entityGraphMenu.code,
value: entityGraphMenu.i18n ? this.$t(entityGraphMenu.i18n) : entityGraphMenu.name,
route: entityGraphMenu.route,
type: entityGraphMenu.type
})
return true
}
const menu = menus.find(m => m.route === this.route)
if (menu) {