no message
Former-commit-id: 1953537d40e64a8f13197acb719d8d794f3c97ac Former-commit-id: a6992c00bd08f885f08cf0a123af6c6fadf45e31 Former-commit-id: 7f6a6ef298ea4e7d6befdbc18ad43418f2af3f5c
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// [业务演示] 菜单
|
||||
export const businessMenu = {
|
||||
export const menu = {
|
||||
title: '业务演示',
|
||||
path: '/demo/business',
|
||||
name: 'demo-business',
|
||||
@@ -16,7 +16,7 @@ export const businessMenu = {
|
||||
}
|
||||
|
||||
// [图表] 路由设置
|
||||
export const businessRouter = {
|
||||
...businessMenu,
|
||||
children: [].concat(...businessMenu.children.map(e => e.children || e))
|
||||
export const router = {
|
||||
...menu,
|
||||
children: [].concat(...menu.children.map(e => e.children || e))
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// [图表] 菜单
|
||||
export const chartsMenu = {
|
||||
export const menu = {
|
||||
title: '图表',
|
||||
path: '/demo/charts',
|
||||
name: 'demo-charts',
|
||||
@@ -30,7 +30,7 @@ export const chartsMenu = {
|
||||
}
|
||||
|
||||
// [图表] 路由设置
|
||||
export const chartsRouter = {
|
||||
...chartsMenu,
|
||||
children: [].concat(...chartsMenu.children.map(e => e.children || e))
|
||||
export const router = {
|
||||
...menu,
|
||||
children: [].concat(...menu.children.map(e => e.children || e))
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// [插件] 菜单
|
||||
export const pluginMenu = {
|
||||
export const menu = {
|
||||
title: '功能',
|
||||
path: '/demo/plugin',
|
||||
name: 'demo-plugin',
|
||||
@@ -222,7 +222,7 @@ export const pluginMenu = {
|
||||
}
|
||||
|
||||
// [插件] 路由设置
|
||||
export const pluginRouter = {
|
||||
...pluginMenu,
|
||||
children: [].concat(...pluginMenu.children.map(e => e.children || e))
|
||||
export const router = {
|
||||
...menu,
|
||||
children: [].concat(...menu.children.map(e => e.children || e))
|
||||
}
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { pluginMenu, pluginRouter } from './_plugin'
|
||||
import { chartsMenu, chartsRouter } from './_charts'
|
||||
import { businessMenu, businessRouter } from './_business'
|
||||
import * as plugin from './_plugin'
|
||||
import * as charts from './_charts'
|
||||
import * as business from './_business'
|
||||
|
||||
// 菜单
|
||||
export const menu = [
|
||||
pluginMenu,
|
||||
chartsMenu,
|
||||
businessMenu
|
||||
plugin.menu,
|
||||
charts.menu,
|
||||
business.menu
|
||||
]
|
||||
|
||||
// 路由
|
||||
export const router = [
|
||||
pluginRouter,
|
||||
chartsRouter,
|
||||
businessRouter
|
||||
plugin.router,
|
||||
charts.router,
|
||||
business.router
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user