diff --git a/src/layouts/AdminLayout.vue b/src/layouts/AdminLayout.vue index b697295..14d7a5b 100644 --- a/src/layouts/AdminLayout.vue +++ b/src/layouts/AdminLayout.vue @@ -31,12 +31,12 @@ const menuData = [ icon: 'layout-grid', title: '项目管理' }, - // { - // path: '/admin/users', - // name: 'UserManage', - // icon: 'users', - // title: '用户管理' - // }, + { + path: '/admin/users', + name: 'UserManage', + icon: 'users', + title: '用户管理' + }, // { // path: '/admin/settings', // name: 'Settings', diff --git a/src/router/index.js b/src/router/index.js index 9a8a17f..80ec18b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -40,7 +40,8 @@ const routes = [ children: [ { path: '', redirect: '/admin/dashboard' }, { path: 'dashboard', name: 'Dashboard', component: () => import('@/views/admin/Dashboard.vue') }, - { path: 'projects', name: 'ProjectManage', component: () => import('@/views/admin/ProjectsCRUD.vue') } + { path: 'projects', name: 'ProjectManage', component: () => import('@/views/admin/ProjectsCRUD.vue') }, + { path: 'users', name: 'UsersManage', component: () => import('@/views/admin/Users.vue') } ] }, ] diff --git a/src/views/admin/ProjectsCRUD.vue b/src/views/admin/ProjectsCRUD.vue index 60870e3..acecc4c 100644 --- a/src/views/admin/ProjectsCRUD.vue +++ b/src/views/admin/ProjectsCRUD.vue @@ -1,61 +1,99 @@