{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/2203","repository_url":"https://api.github.com/repos/ant-design/ant-design-pro","labels_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/2203/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/2203/comments","events_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/2203/events","html_url":"https://github.com/ant-design/ant-design-pro/issues/2203","id":357523422,"node_id":"MDU6SXNzdWUzNTc1MjM0MjI=","number":2203,"title":"V2 版本的代理怎么设置呢?","user":{"login":"iskyshy","id":26106616,"node_id":"MDQ6VXNlcjI2MTA2NjE2","avatar_url":"https://avatars2.githubusercontent.com/u/26106616?v=4","gravatar_id":"","url":"https://api.github.com/users/iskyshy","html_url":"https://github.com/iskyshy","followers_url":"https://api.github.com/users/iskyshy/followers","following_url":"https://api.github.com/users/iskyshy/following{/other_user}","gists_url":"https://api.github.com/users/iskyshy/gists{/gist_id}","starred_url":"https://api.github.com/users/iskyshy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iskyshy/subscriptions","organizations_url":"https://api.github.com/users/iskyshy/orgs","repos_url":"https://api.github.com/users/iskyshy/repos","events_url":"https://api.github.com/users/iskyshy/events{/privacy}","received_events_url":"https://api.github.com/users/iskyshy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2018-09-06T07:09:59Z","updated_at":"2018-09-21T06:03:58Z","closed_at":"2018-09-11T15:28:03Z","author_association":"NONE","body":"我在config/config.js 文件中添加此配置\r\n proxy: {\r\n    \"/api\": {\r\n      \"target\": \"http://127.0.0.1:8080\",\r\n      \"changeOrigin\": true,\r\n      \"pathRewrite\": {\"^/api\": \"\"}\r\n    }\r\n  },\r\n启动时使用的命令npm run start:no-mock  命令启动,默认使用的是8000端口,我在设置代理后,后台服务器8080端口不能接收到请求?请问能否详细说明一下应该怎么配置?\r\n"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/comments/423423258","html_url":"https://github.com/ant-design/ant-design-pro/issues/2203#issuecomment-423423258","issue_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/2203","id":423423258,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzQyMzI1OA==","user":{"login":"lhwu","id":20239035,"node_id":"MDQ6VXNlcjIwMjM5MDM1","avatar_url":"https://avatars2.githubusercontent.com/u/20239035?v=4","gravatar_id":"","url":"https://api.github.com/users/lhwu","html_url":"https://github.com/lhwu","followers_url":"https://api.github.com/users/lhwu/followers","following_url":"https://api.github.com/users/lhwu/following{/other_user}","gists_url":"https://api.github.com/users/lhwu/gists{/gist_id}","starred_url":"https://api.github.com/users/lhwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhwu/subscriptions","organizations_url":"https://api.github.com/users/lhwu/orgs","repos_url":"https://api.github.com/users/lhwu/repos","events_url":"https://api.github.com/users/lhwu/events{/privacy}","received_events_url":"https://api.github.com/users/lhwu/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T06:03:58Z","updated_at":"2018-09-21T06:03:58Z","author_association":"NONE","body":"> 设置\"changeOrigin\": false试试\r\n\r\n设置为false，在config/config.js中配置的这个proxy，通过npm run start 启动的话，proxy不生效，不会调配置的proxy。如果通过no-mock启动，则页面都是会跳转到404的错误页面"}}
{"actor":{"display_login":"lhwu"}}