| 12345678910111213141516171819202122232425262728293031323334353637 |
- import store from './store';
- const microApps = [
- {
- name: 'page-main-data',
- entry: '/main-data/',
- activeRule: '/page-main-data'
- },
- {
- name: 'mes',
- entry: '/mes/',
- activeRule: '/page-mes'
- },
- {
- name: 'eam',
- entry: '/eam/',
- activeRule: '/page-eam'
- },
- {
- name: 'aps',
- entry: '/aps/',
- activeRule: '/page-aps'
- }
- ];
- const apps = microApps.map((item) => {
- return {
- ...item,
- container: '#micro-container', // 子应用挂载的div
- props: {
- routerBase: item.activeRule, // 下发基础路由
- // actions
- store
- }
- };
- });
- export default apps;
|