feat(profile): 实现用户个人中心页面及头像上传功能
添加用户个人中心页面,包含基本信息展示和头像上传功能。主要修改包括: 1. 新增 UserProfileView 页面组件 2. 扩展用户信息接口和类型定义 3. 添加文件上传和头像更新API 4. 配置Vite代理以支持文件服务 5. 添加相关依赖(spark-md5, json-bigint)
This commit is contained in:
@@ -34,6 +34,11 @@ export default defineConfig(({ command, mode }) => {
|
||||
// 如果后端 API 路径不包含 /api,可以重写路径
|
||||
// rewrite: (path) => path.replace(/^\/api/, ''),
|
||||
},
|
||||
'/file': {
|
||||
target: 'http://localhost:18085',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user