ant-design / ant-design-pro

👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
https://pro.ant.design
MIT License
36.42k stars 8.14k forks source link

npm run build打包之后,部署到tomcat,打开网站,无法访问我配置的后台服务,求大神指点 #1829

Closed iamgithubym closed 6 years ago

ant-design-bot commented 6 years ago

Ant Design 系列官网由于某些众所周知的原因无法访问,建议翻墙或访问国内镜像站点。

官网

国内镜像

ant-design-bot commented 6 years ago

Translation of this issue:


npm run build After packaging, deploy to tomcat, open the website, can't access the background service I configured, ask God to give pointers

chenshuai2144 commented 6 years ago

反向代理了解一下

iamgithubym commented 6 years ago

只有这种方式吗?

chenshuai2144 commented 6 years ago

去搜一下跨域的解决方案

hllhui commented 6 years ago

我是 重定向 mock 到对应的服务端接口来解决这个问题的

iamgithubym commented 6 years ago

请问具体在哪个地方修改的呢,@hllhui