import Layout from '@/page/index/'

export default [{
  path: '/login',
  name: '登录页',
  component: () =>
    import(/* webpackChunkName: "page" */ '@/page/login/index'),
  meta: {
    keepAlive: true,
    isTab: false,
    isAuth: false
  }
}, {
  path: '/wel',
  component: Layout,
  redirect: '/wel/index',
  children: [{
    path: 'index',
    name: '首页',
    component: () =>
      import(/* webpackChunkName: "views" */ '@/page/wel')
  }]
},
{
  path: '/lock',
  name: '锁屏页',
  component: () =>
    import(/* webpackChunkName: "page" */ '@/page/lock/index'),
  meta: {
    keepAlive: true,
    isTab: false,
    isAuth: false
  }
},
{
  path: '/404',
  component: () =>
    import(/* webpackChunkName: "page" */ '@/components/error-page/404'),
  name: '404',
  meta: {
    keepAlive: true,
    isTab: false,
    isAuth: true
  }

},
{
  path: '/403',
  component: () =>
    import(/* webpackChunkName: "page" */ '@/components/error-page/403'),
  name: '403',
  meta: {
    keepAlive: true,
    isTab: false,
    isAuth: false
  }
},
{
  // 选择角色
  path: '/check',
  component: () =>
    import(/* webpackChunkName: "page" */ '@/page/check/index'),
  name: '角色选择',
  meta: {
    keepAlive: true,
    isTab: false,
    isAuth: false
  }
},
{
  // 选择角色
  path: '/chose',
  component: () =>
    import(/* webpackChunkName: "page" */ '@/page/check/chose'),
  name: '选择',
  meta: {
    keepAlive: true,
    isTab: false,
    isAuth: false
  }
},
// {
//   // 项目选择
//   path: '/building/chose',
//   component: () =>
//     import(/* webpackChunkName: "page" */ '@/views/building/chose'),
//   name: '项目选择',
//   meta: {
//     keepAlive: true,
//     isTab: false,
//     isAuth: false
//   }
// },
{
  path: '/500',
  component: () =>
    import(/* webpackChunkName: "page" */ '@/components/error-page/500'),
  name: '500',
  meta: {
    keepAlive: true,
    isTab: false,
    isAuth: false
  }
},
{
  path: '/',
  name: '主页',
  redirect: '/check'
},
{
  path: '/myiframe',
  component: Layout,
  redirect: '/myiframe',
  children: [{
    path: ':routerPath',
    name: 'iframe',
    component: () =>
      import(/* webpackChunkName: "page" */ '@/components/iframe/main'),
    props: true
  }]
},
{
  path: '*',
  redirect: '/404'
},
{
  path: '/authredirect',
  name: '授权页',
  component: () =>
    import(/* webpackChunkName: "page" */ '@/page/login/authredirect'),
  meta: {
    keepAlive: true,
    isTab: false,
    isAuth: false
  }
},


{
  path: '/message',
  component: () => import(/* webpackChunkName: "views" */ '@/views/msg/index'),
  name: '公告列表',
},

{
  path: '/message/detail',
  component: () => import(/* webpackChunkName: "views" */ '@/views/msg/detail'),
  name: '公告详情',
}
]
