From 30082e57efc7215ebb2014920d72a8a0cfc66eac Mon Sep 17 00:00:00 2001
From: yeg <1347747024@qq.com>
Date: 星期六, 29 八月 2026 18:52:17 +0800
Subject: [PATCH] 修复测试列表删除未接线
---
src/api/tests.ts | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/api/tests.ts b/src/api/tests.ts
index dfb3f30..1b3c455 100644
--- a/src/api/tests.ts
+++ b/src/api/tests.ts
@@ -156,3 +156,7 @@
export async function updateTest(payload: TestConfigurationPayload & { testId: number }): Promise<TestConfigurationDetail> {
return (await request<TestDetailResponse>('/system/test', { method: 'PUT', body: JSON.stringify(payload) })).data
}
+
+export async function deleteTests(testIds: number[]): Promise<void> {
+ await request<ApiResponse>(`/system/test/${testIds.join(',')}`, { method: 'DELETE' })
+}
--
Gitblit v1.7.1