feat(profile): 实现用户个人中心页面及头像上传功能
添加用户个人中心页面,包含基本信息展示和头像上传功能。主要修改包括: 1. 新增 UserProfileView 页面组件 2. 扩展用户信息接口和类型定义 3. 添加文件上传和头像更新API 4. 配置Vite代理以支持文件服务 5. 添加相关依赖(spark-md5, json-bigint)
This commit is contained in:
@@ -4,6 +4,7 @@ import AboutView from "../views/AboutView.vue";
|
||||
import ACCESS_ENUM from "../access/accessEnum";
|
||||
import UserLoginView from "../views/user/UserLoginView.vue";
|
||||
import UserRegisterView from "../views/user/UserRegisterView.vue";
|
||||
import UserProfileView from "../views/user/UserProfileView.vue";
|
||||
import AiChatView from "../views/ai/AiChatView.vue";
|
||||
/**
|
||||
* 路由配置
|
||||
@@ -45,4 +46,10 @@ export const routes: Array<RouteRecordRaw> = [
|
||||
component: UserRegisterView,
|
||||
meta: { hideInMenu: true, access: ACCESS_ENUM.NOT_LOGIN },
|
||||
},
|
||||
{
|
||||
path: "/user/profile",
|
||||
name: "UserProfileView",
|
||||
component: UserProfileView,
|
||||
meta: { hideInMenu: true, access: ACCESS_ENUM.USER },
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user