fix: qiankun plugin props error (#150)

This commit is contained in:
qlin 2022-10-10 10:38:45 +08:00 committed by GitHub
parent 87a59d5d87
commit ec1cf5b427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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