alibaba / ice

🚀 ice.js: The Progressive App Framework Based On React(基于 React 的渐进式应用框架)
https://ice.work
MIT License
17.84k stars 2.09k forks source link

切换菜单,离开微应用路由,再切换回来,样式未加载。 #4341

Closed springot closed 3 years ago

springot commented 3 years ago

主应用路由离开微应用页面,进去其他路由,再切换回微应用路由,微应用样式未加载

ClarkXia commented 3 years ago

提供下简单的 demo 和代码

springot commented 3 years ago

首次进入微应用路由,样式正常 image 离开路由,再次进入,onAppEnter函数中,status是UNMOUNTED,样式未加载。 image image

maoxiaoke commented 3 years ago

@springbot 贴一下主应用配置微应用的代码,或提供一个 demo

springot commented 3 years ago

demo, stark-demo-main是主应用,stark-demo-child是微应用。链接: https://pan.baidu.com/s/1NEyYCHg94e15V_z1dKDDCQ 密码: el96

maoxiaoke commented 3 years ago

@springot 可否提供上传至 github

springot commented 3 years ago

问题已解决,是微应用使用的ant design 样式覆盖了主应用的,已经好了