router.config.js 1.54 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
/**
 * 路由配置
 */
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',
          },
duanledexianxianxian's avatar
sync  
duanledexianxianxian committed
61 62
          {
            key: '315',
duanledexianxianxian's avatar
sync  
duanledexianxianxian committed
63
            path: '/exam/question/list',
duanledexianxianxian's avatar
sync  
duanledexianxianxian committed
64 65 66
            isFull: true, 
            component: './exam/question/list',
          },
duanledexianxianxian's avatar
sync  
duanledexianxianxian committed
67 68 69 70 71 72
          {
            key: '316',
            path: '/exam/question/single',
            isFull: true, 
            component: './exam/question/single',
          },
duanledexianxianxian's avatar
init  
duanledexianxianxian committed
73 74 75 76 77
        ],
      },
    ],
  },
];