ant-design / ant-design/pro-components

用qiankun,当settings中的layout为side和mix的时候,手动刷新页面,子应用无法加载,当为top的时刷新可以正常加载🐛[BUG]

Open
#8,417 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

用qiankun搭建微前端后,当settings中的layout为side和mix的时候,手动点击浏览器的刷新页面,基筑内容可以正常加载,而中间的内如区域子应用无法加载,控制台打印发现子应用可以注册,但是子应用的生命周期一个也不触发,看加载的文件发现根本没有对应的子应用js,然后qiankun的loading一直在;当layout为为top的时手动点击浏览器刷新可以正常加载子应用
步骤:在side和mix的布局下点击菜单选中一个子应用显示在内容区,然后点击浏览器刷新按钮--------一直loading
在top布局下点击菜单选中一个子应用显示在内容区,然后点击浏览器刷新按钮--------正常加载子应用
![微信图片_20240517183337](https://github.com/ant-design/pro-components/assets/75347647/d7fd2822-ae65-40ed-b31d-f1432278d9fc)
![微信图片_20240517183342](https://github.com/ant-design/pro-components/assets/75347647/c23890db-4b35-480e-b5fc-0f5a7f12e891)
![微信图片_20240517183346](https://github.com/ant-design/pro-components/assets/75347647/d308c539-921e-4e0f-8370-2511655cbd6b)

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported refresh flow with side and mix layouts, then compare it with the working top layout. Inspect the child-application registration, lifecycle callbacks, and browser-loaded files or network requests; done means the selected child application loads and its lifecycle runs after a manual refresh in all three layouts.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.