mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 19:52:10 +08:00
router
This commit is contained in:
@@ -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') }
|
||||
|
||||
]
|
||||
@@ -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'
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user