mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2026-01-12 05:01:39 +08:00
refactor: 适配后端删除接口重构,由 URL 传参重构为请求体传参
This commit is contained in:
@@ -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] })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user