This commit is contained in:
gaoshuaixing
2020-12-18 10:47:36 +08:00
parent 4de3a4aca8
commit 86ae2a15b1
2 changed files with 18 additions and 20 deletions

View File

@@ -3,24 +3,22 @@
* @type { *[] }
*/
export const constantRouterMap = [
// {
// path: '/test',
// redirect: '/testa',
// hidden: true,
// children: [
// {
// path: '/testa',
// name: 'testa',
// component: { template: '<div>foo</div>' }
// },
// {
// path: '/testb',
// name: 'testb',
// component: () => import(/* webpackChunkName: "user" */ '../views/Contentb')
// }
// ]
// },
{
path: '/testc',
component: { template: '<div><router-view /></div>' },
children: [
{
path: 'testc',
name: 'testc',
component: { template: '<div>ccc</div>' }
},
{
path: '/testd',
name: 'testd',
component: { template: '<div>ddd</div>' }
}
]
},
{ path: '/testa', component: () => import('@/views/Contenta') },
{ path: '/testb', component: () => import('@/views/Contentb') }
]

View File

@@ -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'
},
},
},