90 lines
2.1 KiB
TypeScript
90 lines
2.1 KiB
TypeScript
import { AppRouteRecordRaw } from '../utils/utils'
|
|
import { RoutesAlias, HOME_PAGE } from '../routesAlias'
|
|
import Home from '@views/index/index.vue'
|
|
|
|
/**
|
|
* 静态路由配置
|
|
* 不需要权限就能访问的路由
|
|
*/
|
|
export const staticRoutes: AppRouteRecordRaw[] = [
|
|
{
|
|
path: '/',
|
|
redirect: HOME_PAGE
|
|
},
|
|
{
|
|
path: RoutesAlias.Login,
|
|
name: 'Login',
|
|
component: () => import('@views/auth/login/index.vue'),
|
|
meta: { title: 'menus.login.title', isHideTab: true, setTheme: true }
|
|
},
|
|
{
|
|
path: '/exception',
|
|
component: Home,
|
|
name: 'Exception',
|
|
meta: { title: 'menus.exception.title' },
|
|
children: [
|
|
{
|
|
path: RoutesAlias.Exception403,
|
|
name: 'Exception403',
|
|
component: () => import('@views/exception/403/index.vue'),
|
|
meta: { title: '403' }
|
|
},
|
|
{
|
|
path: '/:catchAll(.*)',
|
|
name: 'Exception404',
|
|
component: () => import('@views/exception/404/index.vue'),
|
|
meta: { title: '404' }
|
|
},
|
|
{
|
|
path: RoutesAlias.Exception500,
|
|
name: 'Exception500',
|
|
component: () => import('@views/exception/500/index.vue'),
|
|
meta: { title: '500' }
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/result',
|
|
name: 'Result',
|
|
component: Home,
|
|
meta: {
|
|
title: 'menus.result.title',
|
|
icon: ''
|
|
},
|
|
children: [
|
|
{
|
|
path: 'success',
|
|
name: 'ResultSuccess',
|
|
component: () => import('@views/result/success/index.vue'),
|
|
meta: {
|
|
title: 'menus.result.success',
|
|
keepAlive: true
|
|
}
|
|
},
|
|
{
|
|
path: 'fail',
|
|
name: 'ResultFail',
|
|
component: () => import('@views/result/fail/index.vue'),
|
|
meta: {
|
|
title: 'menus.result.fail',
|
|
keepAlive: true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
path: '/outside',
|
|
component: Home,
|
|
name: 'Outside',
|
|
meta: { title: 'menus.outside.title' },
|
|
children: [
|
|
{
|
|
path: '/outside/iframe/:path',
|
|
name: 'Iframe',
|
|
component: () => import('@/views/outside/Iframe.vue'),
|
|
meta: { title: 'iframe' }
|
|
}
|
|
]
|
|
}
|
|
]
|