mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-25 13:51:04 +00:00
移除旧的FileUpload和MultiImageUpload组件,统一使用SingleImageUpload组件处理上传 重构SingleImageUpload组件,使用ConfigAPI替代FileAPI,优化上传逻辑和错误处理 更新用户头像上传逻辑,使用UserAPI处理上传并优化交互体验 优化数据库初始化流程,分离数据库操作和Redis相关操作 重构字典数据配置,合并重复的字典类型并更新相关视图组件 修复定时任务控制器参数类型,从Query改为Body 添加ElImageViewer组件类型声明 优化数据库连接错误处理和日志信息
frontend
项目结构
fastapi_project/frontend
├─ public # 静态资源文件
│ └─ site # 帮助文档模块
├─ src # 源代码
│ ├─ api # 接口文件
│ ├─ assets # 静态资源文件
│ ├─ components # 组件模块
│ ├─ constants # 常量模块
│ ├─ lang # 语言模块
│ ├─ layouts # 布局模块
│ ├─ plugins # 插件模块
│ ├─ router # 路由模块
│ ├─ store # 状态管理模块
│ ├─ styles # 样式模块
│ ├─ types # 类型模块
│ ├─ utils # 工具模块
│ ├─ view # 视图模块
│ ├─ App.vue # 根组件
│ ├─ main.js # 入口文件
│ └─ settings.js # 全局样式文件
├─ .env.development # 项目开发环境配置
├─ .env.production # 项目生产环境配置
├─ index.html # 模板文件
├─ package.json # 项目依赖文件
├─ tsconfig.json # ts配置文件
├─ uno.config.json # uno配置文件
├─ vite.config.js # vite服务配置文件
└─ README.md # 项目说明文档
快速开始
# 进入前端工程目录
cd frontend
# 安装依赖
npm install
# 启动前端服务
npm run dev
# 构建前端, 生成 `frontend/dist` 目录
npm run build