refactor: 适配后端删除接口重构,由 URL 传参重构为请求体传参

This commit is contained in:
2025-04-13 18:02:12 +08:00
parent 987dddf55a
commit 62a4f5faf4
14 changed files with 34 additions and 29 deletions

View File

@@ -26,6 +26,6 @@ export function updateClient(data: any, id: string) {
}
/** @desc 删除终端 */
export function deleteClient(ids: string | Array<string>) {
return http.del(`${BASE_URL}/${ids}`)
export function deleteClient(id: string) {
return http.del(`${BASE_URL}`, { ids: [id] })
}