From 0925f0e2dedcd915df36b4acc3f9e3d17cf0edf2 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 10 Oct 2022 16:05:27 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E5=9C=A8=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89=E4=B8=8D=E7=94=9F?= =?UTF-8?q?=E6=95=88=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1017700 --user=王孝刚 【项目设置】项目设置-应用管理-接口测试,接口快捷添加按钮设置没生效 https://www.tapd.cn/55049933/s/1257318 --bug=1017697 --user=王孝刚 【接口测试】开启接口场景自定义ID后,创建场景没有自定义ID字段 https://www.tapd.cn/55049933/s/1257334 --- api-test/frontend/src/api/project.js | 5 +++++ .../src/business/automation/report/ApiReportViewHeader.vue | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/api-test/frontend/src/api/project.js b/api-test/frontend/src/api/project.js index c0d5a5b259..c1e33f2670 100644 --- a/api-test/frontend/src/api/project.js +++ b/api-test/frontend/src/api/project.js @@ -17,6 +17,11 @@ export function getMaintainer() {getAll } export function getProjectConfig(projectId, type) { + let url = '/project_application/get/config/' + projectId + type; + return get(url); +} + +export function getProjectApplicationConfig(projectId, type) { let url = '/project_application/get/' + projectId + type; return get(url); } diff --git a/api-test/frontend/src/business/automation/report/ApiReportViewHeader.vue b/api-test/frontend/src/business/automation/report/ApiReportViewHeader.vue index 6dd4432874..596f3b9220 100644 --- a/api-test/frontend/src/business/automation/report/ApiReportViewHeader.vue +++ b/api-test/frontend/src/business/automation/report/ApiReportViewHeader.vue @@ -79,7 +79,7 @@ import {generateShareInfoWithExpired,getShareRedirectUrl} from "@/api/share"; import {getCurrentProjectID, getCurrentWorkspaceId} from "metersphere-frontend/src/utils/token"; import MsTag from "metersphere-frontend/src/components/MsTag"; -import {getProjectConfig} from "@/api/project"; +import {getProjectApplicationConfig} from "@/api/project"; import {apiTestReRun} from "@/api/xpack"; import {getUUID} from "metersphere-frontend/src/utils"; @@ -186,7 +186,7 @@ export default { }); }, getProjectApplication() { - getProjectConfig(getCurrentProjectID(), "/API_SHARE_REPORT_TIME").then(res => { + getProjectApplicationConfig(getCurrentProjectID(), "/API_SHARE_REPORT_TIME").then(res => { if (res.data && res.data.typeValue) { let quantity = res.data.typeValue.substring(0, res.data.typeValue.length - 1); let unit = res.data.typeValue.substring(res.data.typeValue.length - 1);