diff --git a/mock/module/user.ts b/mock/module/user.ts index 3643d22..f8e9af0 100644 --- a/mock/module/user.ts +++ b/mock/module/user.ts @@ -317,7 +317,7 @@ const userRoutes = [ { name: 'error', path: '/error', - redirect: '/error/404', + redirect: '/error/403', meta: { title: '异常页', requiresAuth: true, @@ -370,7 +370,7 @@ const userRoutes = [ meta: { title: '用户设置', requiresAuth: true, - icon: 'icon-park-outline:user', + icon: 'icon-park-outline:every-user', }, }, { @@ -402,6 +402,15 @@ const userRoutes = [ }, ], }, + { + name: 'userCenter', + path: '/userCenter', + meta: { + title: '个人中心', + requiresAuth: true, + icon: 'carbon:user-avatar-filled-alt', + }, + }, { name: 'about', path: '/about', diff --git a/src/layouts/BasicLayout/index.vue b/src/layouts/BasicLayout/index.vue index 647ec35..c27e6d5 100644 --- a/src/layouts/BasicLayout/index.vue +++ b/src/layouts/BasicLayout/index.vue @@ -31,7 +31,7 @@
- + diff --git a/src/layouts/components/header/Search.vue b/src/layouts/components/header/Search.vue index 536659a..54b1d55 100644 --- a/src/layouts/components/header/Search.vue +++ b/src/layouts/components/header/Search.vue @@ -1,5 +1,8 @@ + + + + + + + + + {{ userInfo?.userId }} + + + {{ userInfo?.userName }} + + + {{ userInfo?.realName }} + + + {{ userInfo?.role }} + + + + + + + + + + + + + + + + + + + + + + 验证 + + + + + + + + + + + +