mirror of
https://github.com/YunaiV/ruoyi-vue-pro.git
synced 2026-05-13 00:42:54 +00:00
feat: vue3 axios add download function
This commit is contained in:
@@ -40,7 +40,7 @@ export const previewCodegenApi = (id: number) => {
|
||||
|
||||
// 下载生成代码
|
||||
export const downloadCodegenApi = (id: number) => {
|
||||
return request.get({ url: '/infra/codegen/download?tableId=' + id, responseType: 'blob' })
|
||||
return request.download({ url: '/infra/codegen/download?tableId=' + id })
|
||||
}
|
||||
|
||||
// 获得表定义
|
||||
|
||||
Reference in New Issue
Block a user