mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-27 14:52:56 +00:00
fix(gencode): 修复表导入参数格式问题并优化UI样式
修复前端传递表名参数格式与后端API不匹配的问题,调整参数为逗号分隔字符串 优化操作按钮颜色区分不同功能,修正预览对话框变量命名和模板文件后缀 重构文件上传接口模拟实现,移除未使用的导入
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user