Commit e662d2c6 authored by 杨思琦's avatar 杨思琦

fix: 预加载子项目

parent 2e5c43ac
Pipeline #72880 passed with stages
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
"pinyin-match": "^1.1.1", "pinyin-match": "^1.1.1",
"promise.prototype.finally": "^3.1.2", "promise.prototype.finally": "^3.1.2",
"prop-types": "15.7.2", "prop-types": "15.7.2",
"qiankun": "2.7.8", "qiankun": "2.7.9",
"qrcode.react": "^1.0.0", "qrcode.react": "^1.0.0",
"rc-cascader": "^2.3.2", "rc-cascader": "^2.3.2",
"rc-queue-anim": "^2.0.0", "rc-queue-anim": "^2.0.0",
......
...@@ -221,6 +221,12 @@ export const loadMicroApps = (apps, pathName) => { ...@@ -221,6 +221,12 @@ export const loadMicroApps = (apps, pathName) => {
} else { } else {
event.emit("finishInitWeb", pathName); event.emit("finishInitWeb", pathName);
} }
}).catch(error => {
if(apps.length > 0) {
loadMicroApps(apps, pathName);
} else {
event.emit("finishInitWeb", pathName);
}
}), }),
name: micro?.name, name: micro?.name,
store: micro?.props?.store store: micro?.props?.store
......
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