From c0beb480d4806545bf8f4260de1e970733d49068 Mon Sep 17 00:00:00 2001 From: zhaojisen <1301338853@qq.com> Date: Mon, 17 Jun 2024 10:30:33 +0800 Subject: [PATCH] fixed: Fixed an issue where clicking on a task name would lead to a blank page --- src/components/Table/TableFormatters/DetailFormatter.vue | 2 ++ src/views/accounts/AccountGather/AccountGatherTaskList.vue | 6 +----- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/Table/TableFormatters/DetailFormatter.vue b/src/components/Table/TableFormatters/DetailFormatter.vue index 6f8b3198c..ba72c9d37 100644 --- a/src/components/Table/TableFormatters/DetailFormatter.vue +++ b/src/components/Table/TableFormatters/DetailFormatter.vue @@ -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) diff --git a/src/views/accounts/AccountGather/AccountGatherTaskList.vue b/src/views/accounts/AccountGather/AccountGatherTaskList.vue index a2d45cacd..8549cf892 100644 --- a/src/views/accounts/AccountGather/AccountGatherTaskList.vue +++ b/src/views/accounts/AccountGather/AccountGatherTaskList.vue @@ -39,7 +39,7 @@ export default { formatterArgs: { route: 'AccountGatherTaskDetail', routeQuery: { - tab: 'Detail' + tab: 'AccountGatherTaskDetail' } } }, @@ -119,7 +119,3 @@ export default { } } - -