| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- 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;
|