2023-07-24 10:05:07 +08:00
|
|
|
import { DEFAULT_LAYOUT } from '../base';
|
|
|
|
|
import { AppRouteRecordRaw } from '../types';
|
|
|
|
|
|
|
|
|
|
const USER: AppRouteRecordRaw = {
|
|
|
|
|
name: 'user',
|
2023-08-02 17:08:40 +08:00
|
|
|
path: '/user',
|
2023-07-24 10:05:07 +08:00
|
|
|
component: DEFAULT_LAYOUT,
|
|
|
|
|
children: [
|
|
|
|
|
{
|
2023-07-29 13:11:19 +08:00
|
|
|
path: '/user/userChild1',
|
|
|
|
|
name: 'userChild1',
|
|
|
|
|
component: () => import('@/views/user/child1/index.vue'),
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/user/userChild2',
|
|
|
|
|
name: 'userChild2',
|
|
|
|
|
component: () => import('@/views/user/child2/index.vue'),
|
2023-07-24 10:05:07 +08:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default USER;
|