| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- 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: '/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'
- },
- {
- name: 'wms',
- entry: '/wms/',
- activeRule: '/page-wms'
- },
- {
- name: 'qms',
- entry: '/qms/',
- activeRule: '/page-qms'
- },
- {
- name: 'eos',
- entry: '/eos/',
- // entry: process.env.NODE_ENV == 'development'?'http://localhost:8081/eos/':'/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'
- }
- ];
- const apps = microApps.map((item) => {
- return {
- ...item,
- container: '#micro-container', // 子应用挂载的div
- props: {
- routerBase: item.activeRule, // 下发基础路由
- parentWindow: window,
- fileMain, //文档上传组件 下发给子应用
- store
- }
- };
- });
- export default apps;
|