From 2f23aeaabae6cf5565b3e91b8e4457b15f401256 Mon Sep 17 00:00:00 2001 From: luo Date: Wed, 7 Oct 2026 17:16:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8D=95=E4=B8=AA=E8=A7=A3=E7=BB=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/modules/phoneAsset.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/api/modules/phoneAsset.ts b/src/api/modules/phoneAsset.ts index f1291f0..a1ad94d 100644 --- a/src/api/modules/phoneAsset.ts +++ b/src/api/modules/phoneAsset.ts @@ -39,9 +39,7 @@ export class PhoneAssetAssociationService extends BaseService { /** * 解除单条手机号资产关联 * DELETE /api/admin/phone-asset-associations/{id} - * - * 注意:接口文档未定义请求体,reason 与 confirmed 当前按查询参数传递; - * 联调时若后端以 JSON body 接收,需调整为请求体方式。 + * 请求体:{ reason, confirmed } */ static unbindAssociation( id: number, @@ -50,7 +48,8 @@ export class PhoneAssetAssociationService extends BaseService { ): Promise> { return this.delete>( `/api/admin/phone-asset-associations/${id}`, - { reason, confirmed } + undefined, + { data: { reason, confirmed } } ) }