fixed: Fixed an issue where Dialog does not close when the asset list is authorized for reclicking the jump

This commit is contained in:
zhaojisen
2024-06-13 15:02:37 +08:00
parent 03b0219a1e
commit 86b687d27b
3 changed files with 9 additions and 10 deletions

View File

@@ -99,7 +99,7 @@ export default {
if (routeQuery && typeof routeQuery === 'object') {
detailRoute.query = this.formatterArgs.routeQuery
if (detailRoute.query.tab) {
detailRoute.query = detailRoute.query.tab
detailRoute.name = detailRoute.query.tab
}
}
return detailRoute

View File

@@ -2,10 +2,10 @@
<Dialog
:title="title"
:visible.sync="iVisible"
top="1vh"
:width="width"
:show-cancel="false"
:show-confirm="false"
top="1vh"
>
<GenericListTable :table-config="tableConfig" :header-actions="headerActions" />
</Dialog>
@@ -54,7 +54,3 @@ export default {
}
}
</script>
<style scoped>
</style>

View File

@@ -206,10 +206,13 @@ export default {
}
}
}
},
watch: {
$route: {
handler(newVal) {
newVal.fullPath.includes('/console/perms/asset-permissions/') && (this.GenericListTableDialogConfig.visible = false)
}
}
}
}
</script>
<style scoped>
</style>