-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
mock如果切换到真实服务器请求(回答不要贴文档) #7015
Comments
你不是搞明白了么:#2303 (comment) |
是的,但是现在又不明白了。@afc163 我本地调试应该是可以的,但是现在还是去本地的API |
做做个人知识沉淀吧,一条河流踏进去两次。 |
@afc163 这个是部署之后的,我这个是本地开发,测试环境,而且是按照上次的方法设置的还是不行。 |
|
本地开发用 proxy,就是你主楼里的用法。 |
实测不需要,proxy + npm start 就可以反向代理到真实服务器了。 |
@afc163 你说完之后我又测试了一下。可能是因为我没有重新 |
* style: optimize site style * test: fix eslint * update bigfish url * Add FAQ link of umi * document about proxy config close ant-design/ant-design-pro#7015 * Rename antd-4.0.en-Us.md to antd-4.0.en-US.md * update prolayout url * move layout-component into layout * fix document order
不好意思 我的实测不起作用啊 改了proxy和用npm start, 这个方法并没有连接到我给的Api地址 |
在V5里,开启了proxy + yarn start,如果mock里有相同的url,会优先使用Mock数据。 能否优先进行反向代理? |
同样的问题,求解 |
💻 示例代码
The text was updated successfully, but these errors were encountered: