Former-commit-id: c1d5307180c35274a47138df473f6e7c93d82184 Former-commit-id: 7f699ffc0438187d2efa64e6980226afead071cc Former-commit-id: 3a5fac080c16b69737de6403eb3c2f49e7e79a5b
33 lines
692 B
JavaScript
33 lines
692 B
JavaScript
// [图表] 菜单
|
|
export const menu = {
|
|
title: '图表',
|
|
path: '/demo/chart',
|
|
name: 'demo-chart',
|
|
meta: {
|
|
requiresAuth: true
|
|
},
|
|
component: resolve => { require(['@/components/core/MainLayout/index.vue'], resolve) },
|
|
// redirect: {
|
|
// name: ''
|
|
// },
|
|
children: [
|
|
// 数据处理
|
|
{
|
|
title: '首页',
|
|
icon: 'file-o',
|
|
path: 'index',
|
|
name: 'demo-chart-index',
|
|
meta: {
|
|
requiresAuth: true
|
|
},
|
|
component: resolve => { require(['@/pages/demo/chart/index/index.vue'], resolve) }
|
|
}
|
|
]
|
|
}
|
|
|
|
// [图表] 路由设置
|
|
export const router = {
|
|
...menu,
|
|
children: [].concat(...menu.children.map(e => e.children || e))
|
|
}
|