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

@@ -10,9 +10,32 @@
"build:prod": "vue-tsc -b && vite build --mode prod",
"preview": "vite preview",
"lint": "eslint . --ext .ts,.vue",
"lint:fix": "eslint . --ext .ts,.vue --fix",
"format": "prettier . --write",
"format:check": "prettier . --check",
"type-check": "vue-tsc --noEmit",
"build:types": "vue-tsc --declaration --emitDeclarationOnly"
},
"eslintConfig": {
"root": true,
"env": {
"browser": true,
"node": true,
"es2022": true
},
"extends": [
"eslint:recommended",
"plugin:vue/vue3-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": "latest",
"sourceType": "module"
}
},
"dependencies": {
"@arco-design/web-vue": "^2.57.0",
"axios": "^1.13.2",
@@ -23,12 +46,19 @@
},
"devDependencies": {
"@types/node": "^24.10.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitejs/plugin-vue": "^6.0.1",
"@vue/tsconfig": "^0.8.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-vue": "^9.23.0",
"openapi-typescript-codegen": "^0.29.0",
"prettier": "^3.2.5",
"sass-embedded": "^1.93.3",
"typescript": "~5.9.3",
"vite": "npm:rolldown-vite@7.2.2",
"vue-eslint-parser": "^9.4.3",
"vue-tsc": "^3.1.3"
},
"overrides": {