docs: 更改 request 文档

This commit is contained in:
winixt 2021-12-14 20:29:49 +08:00
parent 5454fad818
commit 6266e04a8e
5 changed files with 9406 additions and 1 deletions

9401
.hound/jscpd-report.json Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -53,7 +53,8 @@ export default {
export const request = {
// 格式化 response.data (只有 response.data 类型为 object 才会调用)
responseDataAdaptor: (data) => {
data.code = data.code === '200' ? '0' : data.code;
return data;
},
// 关闭 response data 校验(只判断 xhr status
closeResDataCheck: false,