Merge pull request #4048 from jumpserver/pr@v4@fix_blank_page

fixed: Fixed an issue where clicking on a task name would lead to a blank page
This commit is contained in:
ZhaoJiSen 2024-06-17 10:38:03 +08:00 committed by GitHub
commit d9864afa8c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View File

@ -98,6 +98,7 @@ export default {
const routeQuery = this.formatterArgs.routeQuery
if (routeQuery && typeof routeQuery === 'object') {
detailRoute.query = this.formatterArgs.routeQuery
if (detailRoute.query.tab) {
detailRoute.name = detailRoute.query.tab
}
@ -106,6 +107,7 @@ export default {
},
goDetail() {
const detailRoute = this.getDetailRoute()
if (this.formatterArgs.openInNewPage) {
this.linkClicked = this.formatterArgs.removeColorOnClick
const { href } = this.$router.resolve(detailRoute)

View File

@ -39,7 +39,7 @@ export default {
formatterArgs: {
route: 'AccountGatherTaskDetail',
routeQuery: {
tab: 'Detail'
tab: 'AccountGatherTaskDetail'
}
}
},
@ -119,7 +119,3 @@ export default {
}
}
</script>
<style>
</style>