Skip to content

样式丢失 #755

@UtherPim

Description

@UtherPim

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. 或者能说明一下子应用切换时做了啥事情吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions