router.config.js 1.21 KB
Newer Older
duanledexianxianxian's avatar
init  
duanledexianxianxian committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
/**
 * 路由配置
 */
export default [
  {
    path: '/user',
    key: '1',
    component: '../layouts/UserLayout',
    routes: [
      {
        key: '11',
        name: 'sign-up',
        path: '/user/sign-up',
        component: './user/signUp',
      },
    ],
  },
  {
    path: '/demo',
    key: '2',
    component: '../layouts/BlankLayout',
    routes: [
      {
        key: '22',
        path: '/demo',
        component: './demo',
      },
    ],
  },
  {
    path: '/',
    key: '3',
    component: '../layouts/SecurityLayout',
    routes: [
      {
        key: '31',
        component: '../layouts/BasicLayout',
        routes: [
          {
            key: '311',
            path: '/exam',
            // isFull: true, 全屏显示
            component: './exam',
          },
          {
            key: '312',
            path: '/video',
            component: './video',
          },
          {
            key: '313',
            path: '/profile',
            component: './profile',
          },
          {
            key: '314',
            path: '/exam/hospitalFinalExam',
            // isFull: true, 全屏显示
            component: './exam/hospitalFinalExam',
          },
        ],
      },
    ],
  },
];