From 8ca86c2398270e0aab0227160cbbafa065670c70 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 24 Oct 2022 16:51:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83=E5=9C=BA?= =?UTF-8?q?=E6=99=AF=E6=8A=A5=E5=91=8A=E8=B7=B3=E8=BD=AC=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018298 --user=赵勇 【接口测试】接口自动化批量执行,任务中心点击详情名称进行跳转跳转到错误位置(系统设置) https://www.tapd.cn/55049933/s/1274595 --- .../src/business/automation/report/ApiReportViewHeader.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/api-test/frontend/src/business/automation/report/ApiReportViewHeader.vue b/api-test/frontend/src/business/automation/report/ApiReportViewHeader.vue index 584485c677..990bd017bd 100644 --- a/api-test/frontend/src/business/automation/report/ApiReportViewHeader.vue +++ b/api-test/frontend/src/business/automation/report/ApiReportViewHeader.vue @@ -154,7 +154,12 @@ export default { let uuid = getUUID().substring(1, 5); let projectId = getCurrentProjectID(); let workspaceId = getCurrentWorkspaceId(); - let path = `/api/automation/?redirectID=${uuid}&dataType=scenario&projectId=${projectId}&workspaceId=${workspaceId}&resourceId=${this.scenarioId}`; + let prefix = "/#"; + if (this.$route && this.$route.path.startsWith('/api/automation/report') + && this.$route.query && this.$route.query.list) { + prefix = "" + } + let path = `${prefix}/api/automation/?redirectID=${uuid}&dataType=scenario&projectId=${projectId}&workspaceId=${workspaceId}&resourceId=${this.scenarioId}`; let data = this.$router.resolve({ path: path });