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

开启样式隔离后子应用加载资源时的域名是主应用的。与这个问题相同,需要怎么解决 https://github.com/jd-opensource/micro-app/issues/424 #1511

Closed
clevernight opened this issue Jan 21, 2025 · 3 comments
Labels
Need Reproduction 需要复现步骤

Comments

@clevernight
Copy link

clevernight commented Jan 21, 2025

问题描述

开启样式隔离后子应用加载资源时的域名是主应用的

复现步骤

  1. 子应用中 css 文件通过 url('iconfont.woff2?t=1736241549325') 引入资源
  2. 主应用引入子应用时开启样式隔离

上传截图

Image

复现仓库

https://github.com/clevernight/microAppDemo.git

环境信息

  • micro-app版本:1.0.0-rc.16
  • 主应用前端框架&版本:vite 4.5.3 + vue 3.4.25
  • 子应用前端框架&版本:vite 4.5.3 + vue 3.4.25
  • 构建工具&版本:vite 4.5.3
@timhub66 timhub66 added the Need Reproduction 需要复现步骤 label Jan 21, 2025
Copy link

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

@clevernight
Copy link
Author

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

已补充 https://github.com/clevernight/microAppDemo.git

Copy link

Since the issue was labeled with Need Reproduction, but no response in 7 days. This issue will be close. If you have any questions, you can comment and reply.
由于该 issue 被标记为需要可复现步骤,却 7 天未收到回应。现关闭 issue,若有任何问题,可评论回复。

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