diff --git a/frontend/src/config/router.config.js b/frontend/src/config/router.config.js index 1eceb24..339cd6f 100644 --- a/frontend/src/config/router.config.js +++ b/frontend/src/config/router.config.js @@ -3,24 +3,22 @@ * @type { *[] } */ export const constantRouterMap = [ - // { - // path: '/test', - // redirect: '/testa', - // hidden: true, - // children: [ - // { - // path: '/testa', - // name: 'testa', - // component: { template: '
foo
' } - // }, - // { - // path: '/testb', - // name: 'testb', - // component: () => import(/* webpackChunkName: "user" */ '../views/Contentb') - // } - // ] - // }, + { + path: '/testc', + component: { template: '
' }, + children: [ + { + path: 'testc', + name: 'testc', + component: { template: '
ccc
' } + }, + { + path: '/testd', + name: 'testd', + component: { template: '
ddd
' } + } + ] + }, { path: '/testa', component: () => import('@/views/Contenta') }, { path: '/testb', component: () => import('@/views/Contentb') } - ] \ No newline at end of file diff --git a/frontend/src/views/Layout.vue b/frontend/src/views/Layout.vue index fdc7b42..6fa0c7e 100644 --- a/frontend/src/views/Layout.vue +++ b/frontend/src/views/Layout.vue @@ -64,11 +64,11 @@ export default { 'menu_2' : { 'subMenu_1' : { title: 'setting菜单1', - page: '' + page: '/testc/testc' }, 'subMenu_2' : { title: 'setting菜单2', - page: '' + page: '/testd' }, }, },