From f7b93c349e2761790e818e36c97961acc071e0d1 Mon Sep 17 00:00:00 2001 From: H0nGzA1 <2505811377@qq.com> Date: Thu, 13 Apr 2023 02:24:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E9=83=A8=E9=97=A8?= =?UTF-8?q?=E5=88=A0=E9=99=A4bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/system/dept/api.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/views/system/dept/api.ts b/web/src/views/system/dept/api.ts index c9796d7..29254ea 100644 --- a/web/src/views/system/dept/api.ts +++ b/web/src/views/system/dept/api.ts @@ -32,11 +32,11 @@ export function UpdateObj(obj: EditReq) { }); } -export function DelObj(id: DelReq) { +export function DelObj(obj: DelReq) { return request({ - url: apiPrefix + id + '/', + url: apiPrefix + obj.id + '/', method: 'delete', - data: { id }, + data: obj, }); }