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

axios请求api会自动把(文件路径或者当前域名路由)拼接上去 #2498

Open
Aameng opened this issue May 12, 2023 · 1 comment

Comments

@Aameng
Copy link

Aameng commented May 12, 2023

image

image

安装的qiankun后 axios请求api会自动把文件路径拼接上去
axios拦截前是正常的 但是不知道为什么出去的时候就会把文件路径拼上去了
麻烦帮忙指点看看 感激不尽~

相关环境信息

  • qiankun 版本 2.10.6
  • 浏览器版本
  • 操作系统:mac
@Aameng Aameng changed the title axios请求api会自动把文件路径拼接上去 axios请求api会自动把(文件路径或者当前域名路由)拼接上去 May 12, 2023
@ahnuchen
Copy link

ahnuchen commented Jun 1, 2023

试试baseURL: "/api/course430"

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

2 participants