From 87f8bc5ec3c6b0abde428854cfbe80c82f9fec27 Mon Sep 17 00:00:00 2001 From: winixt Date: Sat, 8 Oct 2022 18:05:28 +0800 Subject: [PATCH] fix: qiankun plugin props error --- 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; } })