Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

子应用加载不出来 #1514

Open
namezy opened this issue Jan 22, 2025 · 4 comments
Open

子应用加载不出来 #1514

namezy opened this issue Jan 22, 2025 · 4 comments
Assignees
Labels
Need Reproduction 需要复现步骤

Comments

@namezy
Copy link

namezy commented Jan 22, 2025

主应用A,Vite加React,套子应用B,Vite+Vue3,子应用B某个路由又嵌套A,这个嵌套A的路由只有刷新的时候有可能会加载成功,其他路由跳转过来的必加载失败,页面空白,元素空
正常情况下

Image

Image

不正常情况下

Image

@namezy
Copy link
Author

namezy commented Jan 22, 2025

Image

@timhub66 timhub66 self-assigned this Jan 22, 2025
@timhub66 timhub66 added the Need Reproduction 需要复现步骤 label Jan 22, 2025
Copy link

Hello @namezy. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository.
您好 @namezy, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。

@namezy
Copy link
Author

namezy commented Jan 23, 2025

Hello @namezy. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository. 您好 @namezy, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。

https://github.com/namezy/micro-app.git

我的预想是在子应用B对应的/home/settings这个路由下加载应用A对应的一个页面(这个页面不会再引起路由变化),且保证在B应用左侧菜单来回切换时,保证A正常加载。我感觉是路由没法在顺利对应到A了。有没有办法解决。

@timhub66
Copy link
Collaborator

Hello @namezy. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository. 您好 @namezy, 为了方便定位和排查问题,我们需要您提供一个重现实例,请提供一个尽可能精简的 GitHub 仓库地址。

https://github.com/namezy/micro-app.git

我的预想是在子应用B对应的/home/settings这个路由下加载应用A对应的一个页面(这个页面不会再引起路由变化),且保证在B应用左侧菜单来回切换时,保证A正常加载。我感觉是路由没法在顺利对应到A了。有没有办法解决。

@namezy ,react的app别用vite,改成CRA的模版试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Need Reproduction 需要复现步骤
Projects
None yet
Development

No branches or pull requests

2 participants