From 7319d24cbc64fc199924adb213981c53bdf8630b Mon Sep 17 00:00:00 2001 From: shizhong <124974919@qq.com> Date: Wed, 6 Mar 2024 21:44:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20dictType=20?= =?UTF-8?q?=E5=92=8C=20dictData=20=E5=9C=A8=20IDEA=20=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/dict/dict.data.ts | 3 ++- src/api/system/dict/dict.type.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/api/system/dict/dict.data.ts b/src/api/system/dict/dict.data.ts index fd97a2dc..258a5213 100644 --- a/src/api/system/dict/dict.data.ts +++ b/src/api/system/dict/dict.data.ts @@ -30,7 +30,8 @@ export const updateDictDataApi = (data: DictDataVO) => { export const deleteDictDataApi = (id: number) => { return request.delete({ url: '/system/dict-data/delete?id=' + id }) } + // 导出字典类型数据 export const exportDictDataApi = (params: DictDataExportReqVO) => { - return request.get({ url: '/system/dict-data/export', params }) + return request.download({ url: '/system/dict-data/export', params }) } diff --git a/src/api/system/dict/dict.type.ts b/src/api/system/dict/dict.type.ts index 22e6411e..03504a2e 100644 --- a/src/api/system/dict/dict.type.ts +++ b/src/api/system/dict/dict.type.ts @@ -30,7 +30,8 @@ export const updateDictTypeApi = (data: DictTypeVO) => { export const deleteDictTypeApi = (id: number) => { return request.delete({ url: '/system/dict-type/delete?id=' + id }) } + // 导出字典类型 export const exportDictTypeApi = (params: DictTypeExportReqVO) => { - return request.get({ url: '/system/dict-type/export', params }) + return request.download({ url: '/system/dict-type/export', params }) }