From b7244bae01791a80be91ee15d8023e8f8dc96eed Mon Sep 17 00:00:00 2001 From: YunaiV Date: Mon, 16 Jun 2025 09:08:09 +0800 Subject: [PATCH] =?UTF-8?q?reactor=EF=BC=9A=E7=BB=9F=E4=B8=80=E5=AF=BC?= =?UTF-8?q?=E5=87=BA=E7=9A=84=20url=20=E9=83=BD=E6=98=AF=20export-excel?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/api/infra/config/index.ts | 2 +- apps/web-antd/src/api/mall/product/spu.ts | 2 +- apps/web-antd/src/api/system/dict/data/index.ts | 2 +- apps/web-antd/src/api/system/dict/type/index.ts | 2 +- apps/web-antd/src/api/system/post/index.ts | 2 +- apps/web-antd/src/api/system/sms/channel/index.ts | 2 +- apps/web-antd/src/api/system/user/index.ts | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/web-antd/src/api/infra/config/index.ts b/apps/web-antd/src/api/infra/config/index.ts index 521e957a2..aa80bcbed 100644 --- a/apps/web-antd/src/api/infra/config/index.ts +++ b/apps/web-antd/src/api/infra/config/index.ts @@ -61,7 +61,7 @@ export function deleteConfigList(ids: number[]) { /** 导出参数 */ export function exportConfig(params: any) { - return requestClient.download('/infra/config/export', { + return requestClient.download('/infra/config/export-excel', { params, }); } diff --git a/apps/web-antd/src/api/mall/product/spu.ts b/apps/web-antd/src/api/mall/product/spu.ts index e8915e020..3d9a15132 100644 --- a/apps/web-antd/src/api/mall/product/spu.ts +++ b/apps/web-antd/src/api/mall/product/spu.ts @@ -168,7 +168,7 @@ export function deleteSpu(id: number) { /** 导出商品 SPU Excel */ export function exportSpu(params: PageParam) { - return requestClient.download('/product/spu/export', { params }); + return requestClient.download('/product/spu/export-excel', { params }); } /** 获得商品 SPU 精简列表 */ diff --git a/apps/web-antd/src/api/system/dict/data/index.ts b/apps/web-antd/src/api/system/dict/data/index.ts index 6bf7473ce..674eb01e4 100644 --- a/apps/web-antd/src/api/system/dict/data/index.ts +++ b/apps/web-antd/src/api/system/dict/data/index.ts @@ -57,5 +57,5 @@ export function deleteDictDataList(ids: number[]) { // 导出字典类型数据 export function exportDictData(params: any) { - return requestClient.download('/system/dict-data/export', { params }); + return requestClient.download('/system/dict-data/export-excel', { params }); } diff --git a/apps/web-antd/src/api/system/dict/type/index.ts b/apps/web-antd/src/api/system/dict/type/index.ts index 8c2951cc1..eb2f9c9d4 100644 --- a/apps/web-antd/src/api/system/dict/type/index.ts +++ b/apps/web-antd/src/api/system/dict/type/index.ts @@ -51,5 +51,5 @@ export function deleteDictTypeList(ids: number[]) { // 导出字典类型 export function exportDictType(params: any) { - return requestClient.download('/system/dict-type/export', { params }); + return requestClient.download('/system/dict-type/export-excel', { params }); } diff --git a/apps/web-antd/src/api/system/post/index.ts b/apps/web-antd/src/api/system/post/index.ts index 06df146c3..8b32ad218 100644 --- a/apps/web-antd/src/api/system/post/index.ts +++ b/apps/web-antd/src/api/system/post/index.ts @@ -57,7 +57,7 @@ export function deletePostList(ids: number[]) { /** 导出岗位 */ export function exportPost(params: any) { - return requestClient.download('/system/post/export', { + return requestClient.download('/system/post/export-excel', { params, }); } diff --git a/apps/web-antd/src/api/system/sms/channel/index.ts b/apps/web-antd/src/api/system/sms/channel/index.ts index 575c92447..df32aad87 100644 --- a/apps/web-antd/src/api/system/sms/channel/index.ts +++ b/apps/web-antd/src/api/system/sms/channel/index.ts @@ -63,5 +63,5 @@ export function deleteSmsChannelList(ids: number[]) { /** 导出短信渠道 */ export function exportSmsChannel(params: any) { - return requestClient.download('/system/sms-channel/export', { params }); + return requestClient.download('/system/sms-channel/export-excel', { params }); } diff --git a/apps/web-antd/src/api/system/user/index.ts b/apps/web-antd/src/api/system/user/index.ts index 1f51a5bc7..762e83556 100644 --- a/apps/web-antd/src/api/system/user/index.ts +++ b/apps/web-antd/src/api/system/user/index.ts @@ -56,7 +56,7 @@ export function deleteUserList(ids: number[]) { /** 导出用户 */ export function exportUser(params: any) { - return requestClient.download('/system/user/export', params); + return requestClient.download('/system/user/export-excel', params); } /** 下载用户导入模板 */