zb-admin/src/router/modules/functionPage.ts

44 lines
1.3 KiB
TypeScript
Raw Normal View History

2022-11-14 14:37:06 +00:00
/** When your routing table is too long, you can split it into small modules**/
import Layout from "@/layout/index.vue";
const functionPageRouter = [{
path: '/function-page',
component: Layout,
2022-11-19 15:19:03 +00:00
redirect: '/function-page/404',
2022-11-14 14:37:06 +00:00
name: 'function-page',
meta: {
title: '功能页面',
icon: 'ElementPlus'
},
children: [
2022-11-19 15:19:03 +00:00
{
path: 'tools',
component: () => import('@/views/functionPage/tools/index.vue'),
name: 'tools',
meta: { title: '工具链集合', keepAlive: true , icon: 'MenuIcon'}
},
2022-11-14 14:37:06 +00:00
{
path: '404',
2022-11-20 11:53:13 +00:00
component: () => import('@/views/errorPages/404.vue'),
2022-11-14 14:37:06 +00:00
name: 'function-404',
2022-11-25 14:14:06 +00:00
meta: { title: '404 页面', keepAlive: true , icon: 'MenuIcon'}
2022-11-14 14:37:06 +00:00
},
{
path: '403',
2022-11-20 11:53:13 +00:00
component: () => import('@/views/errorPages/403.vue'),
2022-11-14 14:37:06 +00:00
name: 'function-403',
2022-11-25 14:14:06 +00:00
meta: { title: '403 页面', keepAlive: true , icon: 'MenuIcon'}
2022-11-14 14:37:06 +00:00
},
{
path: 'fullscreen',
component: () => import('@/views/functionPage/fullscreen/index.vue'),
name: 'fullscreen',
meta: { title: '元素 全屏', keepAlive: true , icon: 'MenuIcon'}
},
2022-11-14 14:37:06 +00:00
]
}]
export default functionPageRouter