icestark icon indicating copy to clipboard operation
icestark copied to clipboard

样式丢失

Open UtherPim opened this issue 1 year ago • 2 comments

bug

复现过程

  1. 主应用使用vue3 + antd构建;
  2. 子应用使用react18 + antd5 + other(内部基于antd4封装的组件库);
  3. 子应用覆写unmount函数,特意不执行root.unmount()卸载子应用(发现这样可以缓存react子应用页面状态) export function unmount() {console.log('unmount ')}
  4. 从子应用A切换到别的子应用B再切回该子应用A离开时的路由,出现样式丢失,自己写的module.css样式和antd5(用了prefixCls)框架的样式,都丢了

期望

  1. 切换子应用后样式不丢,正常展示。
  2. 或者是否有缓存子应用所有状态的方案?
  3. 或者能说明一下子应用切换时做了啥事情吗?

UtherPim avatar Sep 23 '24 09:09 UtherPim