Files
mes-ui-d2/src/router/menu/_components.js
李杨 60997e66fa no message
Former-commit-id: 71831b5973a38093ee4e0577fa223f94eeaeadd1
Former-commit-id: c675ecf85ead5a70ecc2d5777dc8f70f93ab70d2
Former-commit-id: aabfe2427db6f68953e6c42e4b38af81fc47c2fd
2018-02-10 19:15:59 +08:00

39 lines
830 B
JavaScript

// [组件] 菜单
export const menu = {
title: '组件',
path: '/demo/components',
name: 'demo-components',
meta: {
requiresAuth: true
},
component: resolve => { require(['@/components/core/MainLayout/index.vue'], resolve) },
// redirect: {
// name: ''
// },
children: [
// 图标
{
title: '图标',
icon: 'flask',
children: [
{
title: '演示',
icon: 'file-o',
path: 'data/icon',
name: 'demo-components-icon',
meta: {
requiresAuth: true
},
component: resolve => { require(['@/pages/demo/components/icon/index.vue'], resolve) }
}
]
}
]
}
// [组件] 路由设置
export const router = {
...menu,
children: [].concat(...menu.children.map(e => e.children || e))
}