import { type RouteRecordRaw } from 'vue-router'

export default [
  {
    path: '/login',
    name: 'Login',
    meta: {
      rank: 1001,
      title: '登录',
    },
    component: () => import('@/views/login/login.vue'),
  },
  // {
  //   path: '/404',
  //   name: 'NotFound',
  //   meta: {
  //     title: '未找到该页面',
  //   },
  //   component: () => import('@/views/exception/404.vue'),
  // },
  {
    path: '/500',
    name: 'ServerError',
    meta: {
      rank: 1001,
      title: '服务器错误',
    },
    component: () => import('@/views/exception/500.vue'),
  },
  {
    path: '/:pathMatch(.*)*',
    name: 'Universal',
    meta: {
      rank: 1001,
      title: '未找到该页面',
    },
    component: () => import('@/views/exception/404.vue'),
  },
] as RouteRecordRaw[]
