import Layout from "@/layout/index.vue";

export default [
  {
    path: '/',
    redirect: "/dashboard/workspace",
    hidden: true,
  },
  {
    path: '/login',
    component: () => import('@/view/login/index.vue'),
    meta: {
      title: '登录'
    },
    hidden: true,
  },
  {
    path: '/error/403',
    component: () => import('@/view/error/404.vue'),
    meta: { title: '404' },
    hidden: true,
  },
  {
    path: '/error/404',
    component: () => import('@/view/error/404.vue'),
    meta: {
      title: '404'
    },
    hidden: true,
  },
  {
    path: '/error/500',
    component: () => import('@/view/error/404.vue'),
    meta: {
      title: '500'
    },
    hidden: true,
  },
  // {
  //   path: '/dataScreen',
  //   component: () => import('@/view/dataScreen/index.vue'),
  //   meta: {
  //     title: '数据大屏'
  //   },
  //   hidden: true,
  // },
  {
    path: '/profile',
    component: () => Layout,
    meta: {
      title: '个人中心'
    },
    children: [
      {
        path: '/profile/index',
        component: () => import('@/view/profile/index.vue'),
        meta: {
          title: '个人详情',
          i18n: 'profile'
        }
      }
    ],
    hidden: true,
  }
]
