Commit 36a949b4 authored by 杨思琦's avatar 杨思琦

fix: 修改workflow加载

parent 04aec28a
Pipeline #78918 passed with stages
...@@ -165,6 +165,21 @@ export const application = global => { ...@@ -165,6 +165,21 @@ export const application = global => {
}); });
} }
}); });
const workflow = products.filter(item => item.name === 'civ_workflow');
if (workflow.length === 0) {
products.push({
name: 'civ_workflow',
noPrefetch: true,
entry: `${window.location.protocol}//${window.location.host}/civ_workflow`,
container: '#micro-container',
activeRule: genActiveRule('/civbase/civ_workflow'),
props: {
routerBase: 'civ_workflow',
event,
store: microStore,
},
});
}
const entrys = process.env.NODE_ENV !== 'production' ? micorConfig.dev : products; const entrys = process.env.NODE_ENV !== 'production' ? micorConfig.dev : products;
const apps = entrys.map(item => ({ const apps = entrys.map(item => ({
...@@ -248,7 +263,7 @@ export const initMicroApps = (url) => { ...@@ -248,7 +263,7 @@ export const initMicroApps = (url) => {
global: globalStore.globalf global: globalStore.globalf
}); });
const microApps = application(); const microApps = application();
const micro = microApps.filter(app => (!/civweb4/.test(app.name) && url.indexOf(app.name) < 0)) ?? []; const micro = microApps.filter(app => (!/civweb4/.test(app.name) && url.indexOf(app.name) < 0 && !app.noPrefetch)) ?? [];
if(window?.qiankunIsCache){ if(window?.qiankunIsCache){
microStore.on("event:dropCache", (() => { microStore.on("event:dropCache", (() => {
micorManager.map((micro) => { micorManager.map((micro) => {
......
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