feat:🚀 新增加路由
This commit is contained in:
parent
78e38f9e92
commit
1943e2339a
|
|
@ -16,6 +16,7 @@ import chatRouter from './modules/chat'
|
||||||
import othersRouter from './modules/other'
|
import othersRouter from './modules/other'
|
||||||
import externalLink from './modules/externalLink'
|
import externalLink from './modules/externalLink'
|
||||||
import formRouter from './modules/from'
|
import formRouter from './modules/from'
|
||||||
|
import functionPageRouter from './modules/functionPage'
|
||||||
|
|
||||||
// 异步组件
|
// 异步组件
|
||||||
export const asyncRoutes = [
|
export const asyncRoutes = [
|
||||||
|
|
@ -23,8 +24,9 @@ export const asyncRoutes = [
|
||||||
...echartsRouter,
|
...echartsRouter,
|
||||||
...tableRouter,
|
...tableRouter,
|
||||||
...formRouter,
|
...formRouter,
|
||||||
...chatRouter,
|
|
||||||
...othersRouter,
|
...othersRouter,
|
||||||
|
...functionPageRouter,
|
||||||
|
...chatRouter,
|
||||||
...nestedRouter,
|
...nestedRouter,
|
||||||
...excelRouter,
|
...excelRouter,
|
||||||
...errorRouter,
|
...errorRouter,
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,31 @@
|
||||||
|
|
||||||
|
/** 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,
|
||||||
|
redirect: '/function-page/401',
|
||||||
|
name: 'function-page',
|
||||||
|
meta: {
|
||||||
|
title: '功能页面',
|
||||||
|
icon: 'ElementPlus'
|
||||||
|
},
|
||||||
|
children: [
|
||||||
|
{
|
||||||
|
path: '404',
|
||||||
|
component: () => import('@/views/error/404.vue'),
|
||||||
|
name: 'function-404',
|
||||||
|
meta: { title: '404', keepAlive: true , icon: 'MenuIcon'}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '403',
|
||||||
|
component: () => import('@/views/error/403.vue'),
|
||||||
|
name: 'function-403',
|
||||||
|
meta: { title: '403', keepAlive: true , icon: 'MenuIcon'}
|
||||||
|
},
|
||||||
|
]
|
||||||
|
}]
|
||||||
|
|
||||||
|
export default functionPageRouter
|
||||||
Loading…
Reference in New Issue