From ec1cf5b4270e13b0f20c96fbf6e3bca7e540eede Mon Sep 17 00:00:00 2001 From: qlin Date: Mon, 10 Oct 2022 10:38:45 +0800 Subject: [PATCH] fix: qiankun plugin props error (#150) --- packages/fes-plugin-qiankun/src/micro/runtime/lifecycles.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/fes-plugin-qiankun/src/micro/runtime/lifecycles.tpl b/packages/fes-plugin-qiankun/src/micro/runtime/lifecycles.tpl index a12e9b52..20c86e23 100644 --- a/packages/fes-plugin-qiankun/src/micro/runtime/lifecycles.tpl +++ b/packages/fes-plugin-qiankun/src/micro/runtime/lifecycles.tpl @@ -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; } })