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