fix(gencode): 修复表导入参数格式问题并优化UI样式

修复前端传递表名参数格式与后端API不匹配的问题,调整参数为逗号分隔字符串
优化操作按钮颜色区分不同功能,修正预览对话框变量命名和模板文件后缀
重构文件上传接口模拟实现,移除未使用的导入
This commit is contained in:
zhangtao
2025-10-09 00:36:49 +08:00
parent 97e6382710
commit 1ee6278107
6 changed files with 51 additions and 32 deletions
+17 -3
View File
@@ -33,12 +33,26 @@ import "@wangeditor-next/editor/dist/css/style.css";
import { Toolbar, Editor } from "@wangeditor-next/editor-for-vue";
import { IToolbarConfig, IEditorConfig } from "@wangeditor-next/editor";
// 文件上传 API
import FileAPI from "@/api/file.api";
// 上传图片回调函数类型
type InsertFnType = (_url: string, _alt: string, _href: string) => void;
// 模拟文件上传API,根据实际项目结构调整
interface UploadResult {
url: string;
name: string;
}
const FileAPI = {
uploadFile: async (file: File): Promise<UploadResult> => {
// 这里应该是实际的文件上传逻辑
// 暂时返回一个mock数据
return Promise.resolve({
url: 'https://example.com/image.jpg',
name: file.name
});
}
};
defineProps({
height: {
type: String,