feat(api): 新增文件上传相关API及用户邮箱字段

refactor(auth): 使用isApiSuccess统一校验API响应
refactor(store): 更新用户信息获取逻辑以适配新响应格式

chore: 添加eslint和prettier配置及脚本
style: 调整vite代理配置端口号

新增文件上传相关API接口及类型定义
扩展用户信息接口添加邮箱相关字段
统一API响应校验逻辑
更新package.json添加代码格式化工具
This commit is contained in:
2026-01-11 21:50:38 +08:00
parent d01117c6ea
commit 9d18d05a58
10 changed files with 1933 additions and 19 deletions

View File

@@ -28,7 +28,7 @@ export default defineConfig(({ command, mode }) => {
proxy: {
// 代理所有 /api 开头的请求
'/api': {
target: 'http://localhost:8085', // 后端服务器地址
target: 'http://localhost:18085', // 后端服务器地址
changeOrigin: true, // 改变请求头中的 origin
secure: false, // 支持 https
// 如果后端 API 路径不包含 /api可以重写路径