From 8c30823e879e217aafafa20accd2680ba536a36c Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Mon, 24 Oct 2022 10:42:44 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E7=BC=96=E8=BE=91=E7=BC=BA?= =?UTF-8?q?=E5=B0=91=E7=89=88=E6=9C=AC=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018702 --user=陈建星 [测试跟踪]开启版本管理功能后,功能用例编辑页没有版本管理功能 https://www.tapd.cn/55049933/s/1273579 --- test-track/frontend/src/api/testCase.js | 2 +- .../src/business/case/components/TestCaseEdit.vue | 8 +++----- .../src/business/case/components/TestCaseEditShow.vue | 7 +++---- 3 files changed, 7 insertions(+), 10 deletions(-) diff --git a/test-track/frontend/src/api/testCase.js b/test-track/frontend/src/api/testCase.js index f4304cbf10..297b9a1b03 100644 --- a/test-track/frontend/src/api/testCase.js +++ b/test-track/frontend/src/api/testCase.js @@ -25,7 +25,7 @@ export function getTestCase(id) { } export function hasTestCaseOtherInfo(id) { - return get(BASE_URL + `test/case/hasOtherInfo/${id}`); + return get(BASE_URL + `hasOtherInfo/${id}`); } export function testCaseGetByVersionId(versionId, id) { diff --git a/test-track/frontend/src/business/case/components/TestCaseEdit.vue b/test-track/frontend/src/business/case/components/TestCaseEdit.vue index 35bef83018..29f4fa3afe 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEdit.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEdit.vue @@ -39,7 +39,7 @@ {{ $t('operating_log.change_history') }} - import("metersphere-frontend/src/components/version/MxVersionHistory") }, data() { return { @@ -1118,7 +1116,7 @@ export default { hasOtherInfo() { return new Promise((resolve) => { if (this.form.id) { - hasTestCaseOtherInfo() + hasTestCaseOtherInfo(this.form.id) .then((res) => { resolve(res.data); }); diff --git a/test-track/frontend/src/business/case/components/TestCaseEditShow.vue b/test-track/frontend/src/business/case/components/TestCaseEditShow.vue index 0768406fb3..f8b860034b 100644 --- a/test-track/frontend/src/business/case/components/TestCaseEditShow.vue +++ b/test-track/frontend/src/business/case/components/TestCaseEditShow.vue @@ -19,7 +19,7 @@ {{ $t('operating_log.change_history') }} - import("metersphere-frontend/src/components/version/MxVersionHistory") }, data() { return {