fix: qiankun plugin props error

This commit is contained in:
winixt 2022-10-08 18:05:28 +08:00
parent 87a59d5d87
commit 87f8bc5ec3

View File

@ -94,7 +94,7 @@ export function genMount(mountElementId) {
}
hasMountedAtLeastOnce = true;
cacheAppPromise.then((app)=>{
if(!cache[props.name]) {
if(props?.name && !cache[props.name]) {
cache[props.name] = app;
}
})