增加了两套演示空白页面

Former-commit-id: 8e223ee236a3b795298a7223c7c1b8577b48dce3
This commit is contained in:
liyang
2018-07-08 16:14:46 +08:00
parent a83bfc3183
commit 3d4393dc38
22 changed files with 143 additions and 7 deletions
+34
View File
@@ -1,3 +1,33 @@
const businessClass1 = {
path: '/business/class1',
title: '功能 1',
icon: 'cube',
children: (pre => [
{ path: `${pre}index`, title: '首页', icon: 'home' },
{ path: `${pre}page1`, title: '页面 1', icon: 'paperclip' },
{ path: `${pre}page2`, title: '页面 2', icon: 'paperclip' },
])('/business/class1/'),
};
const businessClass2 = {
path: '/business/class2',
title: '功能 2',
icon: 'cube',
children: (pre => [
{ path: `${pre}index`, title: '首页', icon: 'home' },
{
title: '功能 2-1',
icon: 'cube',
children: [
{ path: `${pre}class2-1/page1`, title: '页面 1', icon: 'paperclip' },
{ path: `${pre}class2-1/page2`, title: '页面 2', icon: 'paperclip' },
],
},
{ path: `${pre}page1`, title: '页面 1', icon: 'paperclip' },
{ path: `${pre}page2`, title: '页面 2', icon: 'paperclip' },
])('/business/class2/'),
};
const setting = {
path: '/core/setting',
title: '设置',
@@ -10,6 +40,8 @@ const setting = {
// 菜单 侧边栏
export const side = [
businessClass1,
businessClass2,
setting,
];
@@ -20,5 +52,7 @@ export default [
title: '首页',
icon: 'home',
},
businessClass1,
businessClass2,
setting,
];