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

打包到正式环境后,接口一直报405,而且奇怪的是接口地址等于页面地址 #2558

Closed
liaohongsen opened this issue Sep 4, 2019 · 6 comments

Comments

@liaohongsen
Copy link

页面地址 mudi.xywykj.com 接口地址 test.xywykj.com

@liaohongsen
Copy link
Author

liaohongsen commented Sep 4, 2019

wen1
wen2
wen3
wen4
wen5
wen6
image

这是我相关的所有截图,麻烦指导一下,困扰我几天了,我这个接口请求地址一来就不对,应该是test.xywykj.com

@liaohongsen
Copy link
Author

image
更新一下最新情况,我这里写死的话,就OK,貌似是 没抓到这两个值,用第二个就不行,必须要写死

@gdoudeng
Copy link

gdoudeng commented Sep 7, 2019

你两个baseUrl相加干嘛 不是VUE_APP_URL+VUE_APP_BASE_URL吗

@Yanqilong
Copy link

@gdoudeng 我也碰到了一样的问题,解决了吗?
@PanJiaChen 可以帮忙解释下吗?

@Yanqilong
Copy link

@liaohongsen 重启 serve 后可以获取到

@PanJiaChen
Copy link
Owner

#2929

重新拉取最新代码已修复。

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

4 participants