houyaf 3 år sedan
förälder
incheckning
a19bf00871

+ 1 - 1
src/layouts/components/Tools/index.vue

@@ -115,7 +115,7 @@ function userCommand(command: 'home' | 'setting' | 'hotkeys' | 'logout') {
             {{ generateI18nTitle('route.home', settingsStore.settings.home.title) }}
           </el-dropdown-item>
           <el-dropdown-item command="setting">
-            {{ t('app.profile') }}
+            {{ t('app.personal') }}
           </el-dropdown-item>
           <el-dropdown-item v-if="settingsStore.mode === 'pc'" divided command="hotkeys">
             {{ t('app.hotkeys') }}

+ 2 - 2
src/router/modules/system.ts

@@ -6,7 +6,7 @@ const routes: RouteRecordRaw[] = [
   {
     path: '/company',
     component: Layout,
-    redirect: '/company/profile',
+    redirect: '/company/personal',
     name: 'company',
     meta: {
       title: '组织管理',
@@ -15,7 +15,7 @@ const routes: RouteRecordRaw[] = [
     },
     children: [
       {
-        path: 'profile',
+        path: 'personal',
         name: 'company_profile',
         component: () => import('@/views/system/profile/company_profile.vue'),
         meta: {

+ 12 - 12
src/router/routes.ts

@@ -63,31 +63,31 @@ const systemRoutes: RouteRecordRaw[] = [
         },
       },
       {
-        path: 'profile/setting',
+        path: 'personal/setting',
         name: 'profileSetting',
-        component: () => import('@/views/profile/setting.vue'),
+        component: () => import('@/views/personal/setting.vue'),
         meta: {
           title: '个人设置',
-          i18n: 'route.profile.setting',
-          cache: 'profileEditPassword',
+          i18n: 'route.personal.setting',
+          cache: 'personalEditPassword',
         },
       },
       {
-        path: 'profile/edit/password',
-        name: 'profileEditPassword',
-        component: () => import('@/views/profile/edit.password.vue'),
+        path: 'personal/edit/password',
+        name: 'personalEditPassword',
+        component: () => import('@/views/personal/edit.password.vue'),
         meta: {
           title: '修改密码',
-          i18n: 'route.profile.editpassword',
+          i18n: 'route.personal.editpassword',
         },
       },
       {
-        path: 'profile/notification',
-        name: 'profileNotification',
-        component: () => import('@/views/profile/notification.vue'),
+        path: 'personal/notification',
+        name: 'personalNotification',
+        component: () => import('@/views/personal/notification.vue'),
         meta: {
           title: '通知中心',
-          i18n: 'route.profile.notification',
+          i18n: 'route.personal.notification',
         },
       },
     ],

+ 0 - 0
src/views/profile/edit.password.vue → src/views/personal/edit.password.vue


+ 0 - 0
src/views/profile/notification.vue → src/views/personal/notification.vue


+ 0 - 0
src/views/profile/setting.vue → src/views/personal/setting.vue