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

加载vite子应用,css,js文件路由丢失,使用的是自定义fetch #1361

Open
donghero opened this issue Sep 12, 2024 · 2 comments
Open
Labels
Need Reproduction 需要复现步骤

Comments

@donghero
Copy link

donghero commented Sep 12, 2024

问题描述

加载vite子应用,js文件路由丢失,自定义fetch拦截不了js文件

上传截图

image

##仓库

主应用:https://github.com/donghero/main-micro-app
子应用:https://github.com/freelogfe/freelog-sample-themes/tree/master/%E3%80%907%E3%80%91music-theme

##具体操作:
1、设置代理,可以使用花瓶 Charles
image

2、输入https://examples.testfreelog.com/

3、可以看到子应用的js加载不出来,但是css是可以的

环境信息

  • micro-app版本:1.0.0-rc.8
  • 主应用前端框架:vite+react
  • 子应用前端框架:vite+vue3
@timhub66 timhub66 added the Need Reproduction 需要复现步骤 label Sep 12, 2024
Copy link

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

@donghero
Copy link
Author

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

已补充信息

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