import store from './store'; import fileMain from '@/components/addDoc/index.vue'; const microApps = [ { name: 'wt', entry: '/wt/', activeRule: '/page-wt' }, { name: 'page-main-data', // entry: 'http://localhost:8081/main-data/', entry: '/main-data/', activeRule: '/page-main-data' }, { name: 'mes', entry: '/mes/', activeRule: '/page-mes' }, { name: 'eam', // entry: 'http://localhost:8083/eam/', entry: '/eam/', activeRule: '/page-eam' }, { name: 'aps', entry: '/aps/', activeRule: '/page-aps' }, { name: 'wms', entry: '/wms/', activeRule: '/page-wms' }, { name: 'qms', entry: '/qms/', activeRule: '/page-qms' }, { name: 'eos', entry: '/eos/', activeRule: '/page-eos' }, { name: 'vis', entry: '/vis/', activeRule: '/page-vis' }, { name: 'pro', entry: '/pro/', activeRule: '/page-pro' }, { name: 'fm', entry: '/fm/', activeRule: '/page-fm' }, { name: 'pcs', // entry: 'http://localhost:8080/pcs/', entry: '/pcs/', activeRule: '/page-pcs' } ]; const apps = microApps.map((item) => { return { ...item, container: '#micro-container', // 子应用挂载的div props: { routerBase: item.activeRule, // 下发基础路由 parentWindow: window, fileMain, //文档上传组件 下发给子应用 store } }; }); export default apps;