umijs / qiankun

📦 🚀 Blazing fast, simple and complete solution for micro frontends.
https://qiankun.umijs.org
MIT License
15.58k stars 2k forks source link

主应用使用umi4,react,子应用是vite+vue3,子应用单独运行没问题,在主应用中运行时接口 404,子应用使用的axios,写了baseURL,也在vite.config.js配置了代理 #2935

Closed wenqstart closed 3 months ago

wenqstart commented 3 months ago

What happens?

A clear and concise description of what the bug is.

Mini Showcase Repository(REQUIRED)

Provide a mini GitHub repository which can reproduce the issue.

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

github-actions[bot] commented 3 months ago

由于缺乏足够的信息(github、stackblitz、codesandbox等可复现仓库),我们暂时关闭了该 Issue。请修改(不要回复) Issue 提供最小重现以重新开启。谢谢。如果只是单独的技术咨询,可移步 https://qiankun.umijs.org/#-community 交流~

wenqstart commented 3 months ago
'/doc-base': {
  target: 'http://localhost:5000',
  changeOrigin: true,
  rewrite: (path) => path.replace('/doc-base', ""),
},这是配置的proxy代理