JavaScript/axios:修订间差异
来自康健生活
| 第33行: | 第33行: | ||
<blockquote><pre> | <blockquote><pre> | ||
withCredentials: true</pre></blockquote> | withCredentials: true</pre></blockquote> | ||
== error == | |||
* Content-Type 设置失效 | |||
*: 请求中如果 data 或者 params 内容为空,则 Content-Type 无效化(axios 默认不需要这个字段) | |||