🐛 修复 dictType 和 dictData 在 IDEA 报错的问题

This commit is contained in:
shizhong 2024-03-06 21:44:22 +08:00
parent 9a49a8ea40
commit 7319d24cbc
2 changed files with 4 additions and 2 deletions

View File

@ -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 })
}

View File

@ -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 })
}