/**
 * 地址路由
 */
import Lock from '../pages/Lock.vue' // 锁屏
import Index from '~/pages/index'
import Blank from '~/pages/blank'
// import CMSRouters from '~/router/cms-routes'
import MeterRouters from '~/router/meter-routes'

export default [
  { path: '/lock', name: 'Lock', component: Lock, meta: { allowBack: false } },
  {
    path: '/',
    component: Index,
    children: [
      {
        path: '/',
        redirect: '/meter/workbench',
        meta: { title: '首页' }
      }
    ]
  },
  {
    path: '/meter',
    component: Blank,
    children: MeterRouters,
    meta: { title: '计量检定LIMS' }
  },
  { path: '*', redirect: '/' }
  // {
  //   path: '/',
  //   component: Blank,
  //   children: [{ path: '/lock', component: Lock, meta: { allowBack: false } }]
  // }
]
