Commit ad608ce4 authored by 张瑶's avatar 张瑶

perf: 定制包加预加载

parent fa1a3eaf
Pipeline #95806 waiting for manual action with stages
...@@ -313,7 +313,7 @@ export const initMicroApps = (url) => { ...@@ -313,7 +313,7 @@ export const initMicroApps = (url) => {
if(url.indexOf(app.name) > -1 && microPackage[app.name] && microPackage[app.name].map) { if(url.indexOf(app.name) > -1 && microPackage[app.name] && microPackage[app.name].map) {
loadMicroPackage(app.name); loadMicroPackage(app.name);
} }
return !/civweb4/.test(app.name) && url.indexOf(app.name) < 0 && ['civ_water', 'civ_webgis', 'civ_monitor', 'civ_workflow'].indexOf(app.name) > -1 && !app.noPrefetch return !/civweb4/.test(app.name) && url.indexOf(app.name) < 0 && ['civ_water', 'civ_webgis', 'civ_monitor', 'civ_workflow', 'civ_customize'].indexOf(app.name) > -1 && !app.noPrefetch
}) ?? []; }) ?? [];
if(window?.qiankunIsCache){ if(window?.qiankunIsCache){
microStore.on("event:dropCache", (() => { microStore.on("event:dropCache", (() => {
......
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