exception.ts 953 Bytes
export default {
  path: 'exception',
  name: 'exception',
  component: () => import('@/views/exception/index.vue'),
  meta: {
    title: '异常页',
    requiresAuth: true,
    icon: 'icon-exclamation-circle',
    hideInMenu: true,
  },
  children: [
    {
      path: '403',
      name: 'exception-403',
      component: () => import('@/views/exception/403/index.vue'),
      meta: {
        title: '403',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: '404',
      name: 'exception-404',
      component: () => import('@/views/exception/404/index.vue'),
      meta: {
        title: '404',
        requiresAuth: true,
        roles: ['*'],
        hideInMenu: true,
      },
    },
    {
      path: '500',
      name: 'exception-500',
      component: () => import('@/views/exception/500/index.vue'),
      meta: {
        title: '500',
        requiresAuth: true,
        roles: ['*'],
      },
    },
  ],
};