Browse Source

fix: profile

double 5 years ago
parent
commit
f3a246f313
2 changed files with 15 additions and 1 deletions
  1. 14 0
      src/router/index.js
  2. 1 1
      src/views/user/index.vue

+ 14 - 0
src/router/index.js

@@ -82,6 +82,20 @@ export const constantRoutes = [
         meta: { title: 'Dashboard', icon: 'dashboard', affix: true }
       }
     ]
+  },
+  {
+    path: '/profile',
+    component: Layout,
+    redirect: '/profile/index',
+    hidden: true,
+    children: [
+      {
+        path: 'index',
+        component: () => import('@/views/profile/index'),
+        name: 'Profile',
+        meta: { title: 'Profile', icon: 'user', noCache: true }
+      }
+    ]
   }
 ]
 

+ 1 - 1
src/views/user/index.vue

@@ -71,7 +71,7 @@
     </el-main>
 
     <el-dialog
-      :title="dialogStatus==='create'?'New users':'Edit users'"
+      :title="dialogStatus==='create'?$t('common.New'):'Edit'"
       :visible.sync="dialogVisible"
       width="50%"
       @close="dialogClose"