From 000d985420143ab8055fdc71c30d7090ad002068 Mon Sep 17 00:00:00 2001 From: ZLY Date: Wed, 26 Nov 2025 10:05:26 +0800 Subject: [PATCH] =?UTF-8?q?feat(componentTestCase):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8Bapi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/componentTestCase.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/api/componentTestCase.ts b/src/api/componentTestCase.ts index e8f216f..bede628 100644 --- a/src/api/componentTestCase.ts +++ b/src/api/componentTestCase.ts @@ -11,5 +11,10 @@ export function getTreeComponents(params?: { name: string, identifier: string, r // 查询单个组件的测试用例列表 export function getComponentTestCaseList(params?: { componentBaseId: string, identifier: string }) { - return axios.get(`${urlPrefix}componentTestCase/tree/testcase`, { params }); + return axios.get(`${urlPrefix}/componentTestCase/tree/testcase`, { params }); +} + +// 提交测试用例 +export function submitTestCase(params) { + return axios.post(`${urlPrefix}/componentTestCase/submit`, params); } \ No newline at end of file