8000 在主应用访问子应用静态资源问题 · Issue #3053 · umijs/qiankun · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

在主应用访问子应用静态资源问题 #3053

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

Open
zhengjialux opened this issue Mar 28, 2025 · 0 comments
Open

在主应用访问子应用静态资源问题 #3053

zhengjialux opened this issue Mar 28, 2025 · 0 comments
7F2D

Comments

@zhengjialux
Copy link
zhengjialux commented Mar 28, 2025

What happens?

你好,我用qiankun遇到个问题,我看过 Angular 类似的 issue 问题,不是很符合我的脚手架场景,所以请教一下。
我的场景是使用umijs创建两个项目,一个为主应用,一个作子应用。
父:127.0.0.1:8000
子:127.0.0.1:8001
按照官方的文档配置好父子微前端,访问父应用能正常访问到子应用(这一步正常的)。
当在子应用中配置了publicPath:'public'后,子引用访问自己地址,资源都在public下。
父级应用访问的子应用地址出错,父级访问子应用路径没用正确访问到public下:

http://localhost:8001/vendors-node_modules_umijs_bundler-webpack_client_client_client_js.async.js

Image

相关环境信息

  • qiankun 版本:最新版本
  • 浏览器版本:chrome最新版本
  • 操作系统:windows
@zhengjialux zhengjialux changed the title [Bug]在主应用访问子应用静态资源问题 在主应用访问子应用静态资源问题 Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0