no message

Former-commit-id: 71831b5973a38093ee4e0577fa223f94eeaeadd1
Former-commit-id: c675ecf85ead5a70ecc2d5777dc8f70f93ab70d2
Former-commit-id: aabfe2427db6f68953e6c42e4b38af81fc47c2fd
This commit is contained in:
李杨
2018-02-10 19:15:59 +08:00
parent d29b8fa68d
commit 60997e66fa
3 changed files with 51 additions and 5 deletions

View File

@@ -0,0 +1,38 @@
// [组件] 菜单
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))
}