{"action":"closed","issue":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1457","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/1457/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1457/comments","events_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/1457/events","html_url":"https://github.com/ant-design/ant-design-pro/issues/1457","id":321179169,"number":1457,"title":"require 请求 提交参数 设置为 formData?","user":{"login":"cookHu","id":30364413,"avatar_url":"https://avatars1.githubusercontent.com/u/30364413?v=4","gravatar_id":"","url":"https://api.github.com/users/cookHu","html_url":"https://github.com/cookHu","followers_url":"https://api.github.com/users/cookHu/followers","following_url":"https://api.github.com/users/cookHu/following{/other_user}","gists_url":"https://api.github.com/users/cookHu/gists{/gist_id}","starred_url":"https://api.github.com/users/cookHu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cookHu/subscriptions","organizations_url":"https://api.github.com/users/cookHu/orgs","repos_url":"https://api.github.com/users/cookHu/repos","events_url":"https://api.github.com/users/cookHu/events{/privacy}","received_events_url":"https://api.github.com/users/cookHu/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-08T13:08:46Z","updated_at":"2018-05-14T01:53:05Z","closed_at":"2018-05-14T01:53:05Z","author_association":"NONE","body":"```\r\nif (!(newOptions.body instanceof FormData)) {\r\n      newOptions.headers = {\r\n        Accept: 'application/json',\r\n        'Content-Type': 'application/json; charset=utf-8',\r\n        ...newOptions.headers,\r\n      };\r\n      newOptions.body = JSON.stringify(newOptions.body);\r\n    } else {\r\n      // newOptions.body is FormData\r\n      newOptions.headers = {\r\n        Accept: 'application/json',\r\n        'Content-Type': 'multipart/form-data',\r\n        ...newOptions.headers,\r\n      };\r\n    }\r\n```\r\npost请求 设置参数 无法进入至else条件值内\r\n并且将参数设置为 formData类型 但是参数传递为空对象\r\n求大神解答"}}
{"actor":{"display_login":"chenshuai2144"}}