mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-14 09:31:14 +08:00
46 lines
1.1 KiB
JavaScript
46 lines
1.1 KiB
JavaScript
|
// .fes.js 只负责管理编译时配置,只能使用plain Object
|
|||
|
|
|||
|
|
|||
|
export default {
|
|||
|
access: {
|
|||
|
roles: {
|
|||
|
admin: ["*"]
|
|||
|
}
|
|||
|
},
|
|||
|
layout: {
|
|||
|
title: "Fes.js",
|
|||
|
footer: 'Created by MumbelFe',
|
|||
|
multiTabs: false,
|
|||
|
navigation: 'mixin',
|
|||
|
menus: [{
|
|||
|
name: 'index',
|
|||
|
icon: 'user'
|
|||
|
}, {
|
|||
|
title: "子应用1",
|
|||
|
icon: 'user',
|
|||
|
children: [{
|
|||
|
name: 'app1-index'
|
|||
|
},{
|
|||
|
name: 'app1-test'
|
|||
|
}]
|
|||
|
}]
|
|||
|
},
|
|||
|
qiankun: {
|
|||
|
main: {
|
|||
|
apps: [
|
|||
|
{
|
|||
|
name: 'app1', // 唯一 id
|
|||
|
entry: '//localhost:8001', // html entry
|
|||
|
props: {} // 传递给子应用的数据
|
|||
|
}
|
|||
|
]
|
|||
|
}
|
|||
|
},
|
|||
|
plugins: [
|
|||
|
require.resolve('../../../fes-plugin-model/lib'),
|
|||
|
require.resolve('../../../fes-plugin-layout/lib'),
|
|||
|
require.resolve('../../../fes-plugin-access/lib'),
|
|||
|
require.resolve('../../../fes-plugin-qiankun/lib'),
|
|||
|
]
|
|||
|
};
|