mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-11-15 00:57:11 +08:00
refactor(generator): 重构代码生成功能,由指定路径生成模式调整为下载模式,更方便复杂场景
This commit is contained in:
@@ -57,7 +57,6 @@ export interface GenConfigRecord {
|
||||
tableName: string;
|
||||
moduleName: string;
|
||||
packageName: string;
|
||||
frontendPath: string;
|
||||
businessName: string;
|
||||
author: string;
|
||||
tablePrefix: string;
|
||||
@@ -89,5 +88,9 @@ export function preview(tableName: string) {
|
||||
}
|
||||
|
||||
export function generate(tableName: string) {
|
||||
return axios.post(`${BASE_URL}/${tableName}`);
|
||||
return axios.request({
|
||||
url: `${BASE_URL}/${tableName}`,
|
||||
method: 'post',
|
||||
responseType: 'blob',
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user