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
如何调用外部API #2819
Comments
这样试试,我实测这样调用公网接口是OK的
vue.config.js:
|
感谢回复,我之前也这样配置过,但是proxy没有生效,依然会访问‘http://localhost:9528/dev-api/go’并报404. |
|
直接用axios为什么会报错 我直接这样用吊用第三方接口是可以返回数据的 // 登记退款银行信息
|
项目运行在http://localhost:9528/#,如何调用一个localhost:8848/go的API,试了修改module.export的proxy,没有效果,用axios调用也拿不到数据。
The text was updated successfully, but these errors were encountered: