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

在子应用中使用css背景图background-image或者svg标签引入svg 文件 单独启动子应用可以正常显示, 在主应用中无法正常访问资源文件,状态为404,变成了加载的是主应用域名下资源 #1492

Open
Paul-Yellow opened this issue Dec 30, 2024 · 3 comments
Assignees
Labels
Working on it Working on this issue

Comments

@Paul-Yellow
Copy link

问题描述

问题的具体描述

在子应用中使用css背景图background-image或者svg标签引入svg 文件 单独启动子应用可以正常显示, 通过基座在主应用中无法正常访问资源文件,状态为404,变成了加载的是主应用域名下资源

上传截图

请上传代码截图、控制台、终端等截图以帮助我们了解您的问题。
image

image

复现仓库

请提供一个精简的代码仓库,然后上传到自己的 github,以帮助我们复现您的问题。

环境信息

  • micro-app版本:1.0.0-rc.18
  • 主应用前端框架&版本:vue3
  • 子应用前端框架&版本:angular9
  • 构建工具&版本:webpack
@vCloudSail
Copy link

同样的问题

@timhub66 timhub66 self-assigned this Jan 3, 2025
@timhub66 timhub66 added the Working on it Working on this issue label Jan 3, 2025
@TaroXin
Copy link

TaroXin commented Jan 10, 2025

Same issues

@timhub66
Copy link
Collaborator

@Paul-Yellow ,就当前demo的这个场景,可以先将iconPath 换成绝对路径,再把use用image替换即可。目前 svg 嵌套跨域的use确实难解,还要一段时间。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Working on it Working on this issue
Projects
None yet
Development

No branches or pull requests

4 participants