mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-05 19:41:57 +08:00
docs: 更改 request 文档
This commit is contained in:
parent
5454fad818
commit
6266e04a8e
9401
.hound/jscpd-report.json
Normal file
9401
.hound/jscpd-report.json
Normal file
File diff suppressed because one or more lines are too long
1
.hound/maintainability-result.json
Normal file
1
.hound/maintainability-result.json
Normal file
File diff suppressed because one or more lines are too long
1
.hound/repeatability-result.json
Normal file
1
.hound/repeatability-result.json
Normal file
File diff suppressed because one or more lines are too long
1
.hound/standard-result.json
Normal file
1
.hound/standard-result.json
Normal file
File diff suppressed because one or more lines are too long
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user