// import BlankLayout from '@/layouts/BlankLayout.vue'
import BasicLayout from '@/layouts/BasicLayout.vue'
import config from '@/config/defaultSetting'
import type { RouteRecordRaw } from 'vue-router'

const constantRouter: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'layout',
    component: BasicLayout,
    redirect: config.homeRouteName,
    children: []
  },
  {
    path: '/login',
    name: 'login',
    component: () => import('@/views/user/Login.vue'),
    meta: {
      title: '登录'
    }
  },
  {
    path: '/exception',
    name: 'exception',
    component: BasicLayout,
    meta: {
      title: '异常页'
    },
    children: [
      {
        path: '403',
        name: '403',
        component: () => import('@/views/exception/403.vue'),
        meta: {
          title: '403'
        }
      },
      {
        path: '404',
        name: '404',
        component: () => import('@/views/exception/404.vue'),
        meta: {
          title: '404'
        }
      },
      {
        path: '500',
        name: '500',
        component: () => import('@/views/exception/500.vue')
      }
    ]
  }
]

export default constantRouter
