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 @@
-
+
@@ -12,7 +15,7 @@
diff --git a/src/layouts/components/header/UserCenter.vue b/src/layouts/components/header/UserCenter.vue
index 8d0b449..e1a8983 100644
--- a/src/layouts/components/header/UserCenter.vue
+++ b/src/layouts/components/header/UserCenter.vue
@@ -8,41 +8,46 @@
- {{ userInfo.realName }}
+ {{ userInfo?.realName }}
diff --git a/src/views/dashboard/workbench/index.vue b/src/views/dashboard/workbench/index.vue
index d04adf5..338bad2 100644
--- a/src/views/dashboard/workbench/index.vue
+++ b/src/views/dashboard/workbench/index.vue
@@ -10,11 +10,11 @@
- 您好,{{ userInfo.realName }},今天又是充满活力的一天!
+ 您好,{{ userInfo?.realName }},今天又是充满活力的一天!
今日多云转晴,20℃ - 25℃!
@@ -160,7 +160,7 @@
+
+
+
+
+
+
+
+
+ {{ userInfo?.userId }}
+
+
+ {{ userInfo?.userName }}
+
+
+ {{ userInfo?.realName }}
+
+
+ {{ userInfo?.role }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 验证
+
+
+
+
+
+
+
+
+
+
+
+