1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- import type { RouteRecordRaw } from 'vue-router';
- import { $t } from '@vben/locales/helper';
- import { BasicLayout } from '#/layouts';
- const routes: RouteRecordRaw[] = [
- {
- component: BasicLayout,
- meta: {
- icon: 'mdi:lightbulb-error-outline',
- title: $t('page.fallback.title'),
- },
- name: 'FallbackLayout',
- path: '/fallback',
- redirect: '/fallback/403',
- children: [
- {
- name: 'Fallback403',
- path: '403',
- component: () => import('#/views/_essential/fallback/forbidden.vue'),
- meta: {
- icon: 'mdi:do-not-disturb-alt',
- title: '403',
- },
- },
- {
- name: 'Fallback404',
- path: '404',
- component: () => import('#/views/_essential/fallback/not-found.vue'),
- meta: {
- icon: 'mdi:table-off',
- title: '404',
- },
- },
- {
- name: 'Fallback500',
- path: '500',
- component: () =>
- import('#/views/_essential/fallback/internal-error.vue'),
- meta: {
- icon: 'mdi:server-network-off',
- title: '500',
- },
- },
- {
- name: 'FallbackOffline',
- path: 'offline',
- component: () => import('#/views/_essential/fallback/offline.vue'),
- meta: {
- icon: 'mdi:offline',
- title: $t('fallback.offline'),
- },
- },
- ],
- },
- ];
- export default routes;
|