From 57d9df85d0f8fd60b12a411f5494de009804863b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=AC=E6=B5=B7?= <445436867@qq.com>
Date: Sat, 12 Oct 2024 10:12:25 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=B8=85=E7=A9=BA?=
 =?UTF-8?q?=E7=88=B6=E5=BA=94=E7=94=A8=E7=8A=B6=E6=80=81,=E5=AD=90?=
 =?UTF-8?q?=E5=BA=94=E7=94=A8=E7=8A=B6=E6=80=81=E6=9C=AA=E6=B8=85=E7=A9=BA?=
 =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#251)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../fes-plugin-qiankun/src/micro/runtime/qiankunModel.tpl    | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/packages/fes-plugin-qiankun/src/micro/runtime/qiankunModel.tpl b/packages/fes-plugin-qiankun/src/micro/runtime/qiankunModel.tpl
index c1223729..2f1bbc16 100644
--- a/packages/fes-plugin-qiankun/src/micro/runtime/qiankunModel.tpl
+++ b/packages/fes-plugin-qiankun/src/micro/runtime/qiankunModel.tpl
@@ -3,9 +3,12 @@ import { cloneDeep } from 'lodash-es'
 let initState = reactive({});
 const setModelState = (props) => {
     // 使用深拷贝去掉主应用数据和子应用数据的引用关系,避免出现副作用。
+    Object.keys(initState).forEach(p=>{
+        delete initState[p]
+    })
     Object.assign(initState, cloneDeep(props))
 };
 
 export default () => initState;
 
-export { setModelState };
\ No newline at end of file
+export { setModelState };