text: // Just a mock data
  
  const constantRoutes = [{
          path: '/redirect',
          component: 'layout/Layout',
          hidden: true,
          children: [{
              path: '/redirect/:path*',
              component: 'views/redirect/index'
          }]
      },
      {
          path: '/login',
          component: 'views/login/index',
          hidden: true
      },
      {
          path: '/auth-redirect',
          component: 'views/login/auth-redirect',
          hidden: true
      },
      {
          path: '/404',
          component: 'views/error-page/404',
          hidden: true
      },
      {
          path: '/401',
          component: 'views/error-page/401',
          hidden: true
      },
      {
          path: '',
          component: 'layout/Layout',
          redirect: 'dashboard',
          children: [{
              path: 'dashboard',
              component: 'views/dashboard/index',
              name: 'Dashboard',
              meta: { title: 'Dashboard', icon: 'dashboard', affix: true }
          }]
      },
      {
          path: '/documentation',
          component: 'layout/Layout',
          children: [{
              path: 'index',
              component: 'views/documentation/index',
              name: 'Documentation',
              meta: { title: 'Documentation', icon: 'documentation', affix: true }
          }]
      }
  ]
  
  const asyncRoutes = [{
          path: '/permission',
          component: 'layout/Layout',
          redirect: '/permission/index',
          alwaysShow: true,
          meta: {
              title: 'Permission',
              icon: 'lock',
              roles: ['admin', 'editor']
          },
          children: [{
                  path: 'page',
                  component: 'views/permission/page',
                  name: 'PagePermission',
                  meta: {
                      title: 'Page Permission',
                      roles: ['admin']
                  }
              },
              {
                  path: 'directive',
                  component: 'views/permission/directive',
                  name: 'DirectivePermission',
                  meta: {
                      title: 'Directive Permission'
                  }
              },
              {
                  path: 'role',
                  component: 'views/permission/role',
                  name: 'RolePermission',
                  meta: {
                      title: 'Role Permission',
                      roles: ['admin']
                  }
              }
          ]
      },
  
      {
          path: '/icon',
          component: 'layout/Layout',
          children: [{
              path: 'index',
              component: 'views/icons/index',
              name: 'Icons',
              meta: { title: 'Icons', icon: 'icon', noCache: true }
          }]
      },
  
      {
          path: '/components',
          component: 'layout/Layout',
          redirect: 'noRedirect',
          name: 'ComponentDemo',
          meta: {
              title: 'Components',
              icon: 'component'
          },
          children: [{
                  path: 'dropzone',
                  component: 'views/components-demo/dropzone',
                  name: 'DropzoneDemo',
                  meta: { title: 'Dropzone' }
              },
              {
                  path: 'count-to',
                  component: 'views/components-demo/count-to',
                  name: 'CountToDemo',
                  meta: { title: 'Count To' }
              },
              {
                  path: 'back-to-top',
                  component: 'views/components-demo/back-to-top',
                  name: 'BackToTopDemo',
                  meta: { title: 'Back To Top' }
              },
              {
                  path: 'drag-dialog',
                  component: 'views/components-demo/drag-dialog',
                  name: 'DragDialogDemo',
                  meta: { title: 'Drag Dialog' }
              },
          ]
      },
      {
          path: '/nested',
          component: 'layout/Layout',
          redirect: '/nested/menu1/menu1-1',
          name: 'Nested',
          meta: {
              title: 'Nested',
              icon: 'nested'
          },
          children: [{
                  path: 'menu1',
                  component: 'views/nested/menu1/index',
                  name: 'Menu1',
                  meta: { title: 'Menu1' },
                  redirect: '/nested/menu1/menu1-1',
                  children: [{
                          path: 'menu1-1',
                          component: 'views/nested/menu1/menu1-1',
                          name: 'Menu1-1',
                          meta: { title: 'Menu1-1' }
                      },
                      {
                          path: 'menu1-2',
                          component: 'views/nested/menu1/menu1-2',
                          name: 'Menu1-2',
                          redirect: '/nested/menu1/menu1-2/menu1-2-1',
                          meta: { title: 'Menu1-2' },
                          children: [{
                                  path: 'menu1-2-1',
                                  component: 'views/nested/menu1/menu1-2/menu1-2-1',
                                  name: 'Menu1-2-1',
                                  meta: { title: 'Menu1-2-1' }
                              },
                              {
                                  path: 'menu1-2-2',
                                  component: 'views/nested/menu1/menu1-2/menu1-2-2',
                                  name: 'Menu1-2-2',
                                  meta: { title: 'Menu1-2-2' }
                              }
                          ]
                      },
                      {
                          path: 'menu1-3',
                          component: 'views/nested/menu1/menu1-3',
                          name: 'Menu1-3',
                          meta: { title: 'Menu1-3' }
                      }
                  ]
              },
              {
                  path: 'menu2',
                  name: 'Menu2',
                  component: 'views/nested/menu2/index',
                  meta: { title: 'Menu2' }
              }
          ]
      },
  
      {
          path: '/error',
          component: 'layout/Layout',
          redirect: 'noRedirect',
          name: 'ErrorPages',
          meta: {
              title: 'Error Pages',
              icon: '404'
          },
          children: [{
                  path: '401',
                  component: 'views/error-page/401',
                  name: 'Page401',
                  meta: { title: 'Page 401', noCache: true }
              },
              {
                  path: '404',
                  component: 'views/error-page/404',
                  name: 'Page404',
                  meta: { title: 'Page 404', noCache: true }
              }
          ]
      },
  
      {
          path: '/clipboard',
          component: 'layout/Layout',
          redirect: 'noRedirect',
          children: [{
              path: 'index',
              component: 'views/clipboard/index',
              name: 'ClipboardDemo',
              meta: { title: 'Clipboard Demo', icon: 'clipboard' }
          }]
      },
      {
          path: 'external-link',
          component: 'layout/Layout',
          children: [{
              path: 'https://github.com/PanJiaChen/vue-element-admin',
              meta: { title: 'External Link', icon: 'link' }
          }]
      },
  
      { path: '*', redirect: '/404', hidden: true }
  ]
  
  module.exports = {
      constantRoutes,
      asyncRoutes
  }