Commit b5793fde authored by 邓晓峰's avatar 邓晓峰

feat: 添加报表请求入口

parent 663d9378
Pipeline #41119 passed with stages
in 4 minutes 2 seconds
/* eslint-disable */ /* eslint-disable */
// const proxyURL = process.env.NODE_ENV !== 'production' ? 'http://192.168.10.150:8777' : window.location.origin; // const proxyURL = process.env.NODE_ENV !== 'production' ? 'http://192.168.10.150:8777' : window.location.origin;
const proxyURL = 'https://work.panda-water.cn'; const proxyURL = 'http://192.168.10.156:8666';
module.exports = { module.exports = {
assetsRoot: process.env.NODE_ENV !== 'production' ? proxyURL : './', assetsRoot: process.env.NODE_ENV !== 'production' ? proxyURL : './',
dev: { dev: {
......
...@@ -38,16 +38,30 @@ export const initMicroApps = (loader, store) => { ...@@ -38,16 +38,30 @@ export const initMicroApps = (loader, store) => {
const application = config && config.products || []; const application = config && config.products || [];
let products = []; let products = [];
application && Array.isArray(application) && application.length > 0 && application.map(item => { application && Array.isArray(application) && application.length > 0 && application.map(item => {
products.push({ if(item.PackageName === 'report') {
name: item.PackageName, products.push({
entry: window.location.protocol + "//" + window.location.host + (`/${item.PackageName}`), name: item.PackageName,
container: '#micro-container', entry: item.RouteUrl,
activeRule: genActiveRule(`/civbase/${item.PackageName}`), container: '#micro-container',
props: { activeRule: genActiveRule(`/civbase/${item.PackageName}`),
...item.DefaultSetting, props: {
routerBase: item.PackageName ...item.DefaultSetting,
} routerBase: item.PackageName
}) }
})
} else {
products.push({
name: item.PackageName,
entry: window.location.protocol + "//" + window.location.host + (`/${item.PackageName}`),
container: '#micro-container',
activeRule: genActiveRule(`/civbase/${item.PackageName}`),
props: {
...item.DefaultSetting,
routerBase: item.PackageName
}
})
}
}); });
const entrys = const entrys =
process.env.NODE_ENV !== 'production' ? process.env.NODE_ENV !== 'production' ?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment