diff --git a/src/router/index.js b/src/router/index.js index 87b9e97a..1680cef0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -207,10 +207,19 @@ export const asyncRoutes = [ ] }, { - path: 'user', - name: 'user', - component: () => import('@/views/datax/user/index'), - meta: { title: '用户管理', icon: 'table', roles: ['ROLE_ADMIN'] } + path: '/datax/user', + component: Layout, + redirect: '/datax/user', + name: 'Example', + meta: { title: '用户管理', icon: 'work' }, + children: [ + { + path: 'user', + name: 'user', + component: () => import('@/views/datax/user/index'), + meta: { title: '用户管理', icon: 'table', roles: ['ROLE_ADMIN'] } + } + ] }, { path: '/datax/registry',