diff --git a/api-test/frontend/src/business/automation/report/ApiReportView.vue b/api-test/frontend/src/business/automation/report/ApiReportView.vue index 0e75787131..5d22dacc3c 100644 --- a/api-test/frontend/src/business/automation/report/ApiReportView.vue +++ b/api-test/frontend/src/business/automation/report/ApiReportView.vue @@ -37,7 +37,17 @@ export default { methods: { getRouteParam(name) { if (this.$route) { - return this.$route.params[name]; + if (name === 'reportId') { + // 测试计划模块使用qiankun加载该页面时,会在reportId前面加上UUID和'[TEST-PLAN-REDIRECT]'分隔符 + let reportId = this.$route.params[name]; + if (reportId && reportId.indexOf('[TEST-PLAN-REDIRECT]') > -1) { + return reportId.split('[TEST-PLAN-REDIRECT]')[1]; + } else { + return reportId; + } + } else { + return this.$route.params[name]; + } } else { return null; } diff --git a/framework/sdk-parent/frontend/src/components/task/TaskCenter.vue b/framework/sdk-parent/frontend/src/components/task/TaskCenter.vue index 0d0aab07d3..4dd664246b 100644 --- a/framework/sdk-parent/frontend/src/components/task/TaskCenter.vue +++ b/framework/sdk-parent/frontend/src/components/task/TaskCenter.vue @@ -111,12 +111,13 @@