no message
Former-commit-id: bc821963613e4d12d6ddda3c83aef8002e00ad94 Former-commit-id: 1d9feebd4110e87e32c345e69872fdae69dde4fe Former-commit-id: 6bf5b2131177854f786fda21c18095859ca6cb3f
This commit is contained in:
22
src/router/menu/_business.js
Normal file
22
src/router/menu/_business.js
Normal file
@@ -0,0 +1,22 @@
|
||||
// [业务演示] 菜单
|
||||
export const businessMenu = {
|
||||
title: '业务演示',
|
||||
path: '/demo/business',
|
||||
name: 'demo-business',
|
||||
component: resolve => { require(['@/components/core/MainLayout/index.vue'], resolve) },
|
||||
children: [
|
||||
{
|
||||
title: '数据过滤',
|
||||
icon: 'document',
|
||||
path: 'dataFilter',
|
||||
name: 'demo-business-dataFilter',
|
||||
component: resolve => { require(['@/pages/demo/business/dataFilter/index.vue'], resolve) }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
// [图表] 路由设置
|
||||
export const businessRouter = {
|
||||
...businessMenu,
|
||||
children: [].concat(...businessMenu.children.map(e => e.children || e))
|
||||
}
|
||||
@@ -32,5 +32,5 @@ export const chartsMenu = {
|
||||
// [图表] 路由设置
|
||||
export const chartsRouter = {
|
||||
...chartsMenu,
|
||||
children: [].concat(...chartsMenu.children.map(e => e.children))
|
||||
children: [].concat(...chartsMenu.children.map(e => e.children || e))
|
||||
}
|
||||
|
||||
@@ -224,5 +224,5 @@ export const pluginMenu = {
|
||||
// [插件] 路由设置
|
||||
export const pluginRouter = {
|
||||
...pluginMenu,
|
||||
children: [].concat(...pluginMenu.children.map(e => e.children))
|
||||
children: [].concat(...pluginMenu.children.map(e => e.children || e))
|
||||
}
|
||||
|
||||
@@ -1,14 +1,17 @@
|
||||
import { pluginMenu, pluginRouter } from './_plugin'
|
||||
import { chartsMenu, chartsRouter } from './_charts'
|
||||
import { businessMenu, businessRouter } from './_business'
|
||||
|
||||
// 菜单
|
||||
export const menu = [
|
||||
pluginMenu,
|
||||
chartsMenu
|
||||
chartsMenu,
|
||||
businessMenu
|
||||
]
|
||||
|
||||
// 路由
|
||||
export const router = [
|
||||
pluginRouter,
|
||||
chartsRouter
|
||||
chartsRouter,
|
||||
businessRouter
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user