|
@@ -3,24 +3,22 @@
|
|
|
* @type { *[] }
|
|
* @type { *[] }
|
|
|
*/
|
|
*/
|
|
|
export const constantRouterMap = [
|
|
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: '/testa', component: () => import('@/views/Contenta') },
|
|
|
{ path: '/testb', component: () => import('@/views/Contentb') }
|
|
{ path: '/testb', component: () => import('@/views/Contentb') }
|
|
|
-
|
|
|
|
|
]
|
|
]
|