-
Notifications
You must be signed in to change notification settings - Fork 33
Open
Description
定义
const context = nattyFetch.context({
mockUrlPrefix: '/mock/',
urlPrefix: '/app/',
header: {
'Content-Type': 'application/json;charset=utf-8'
},
mock: false,
withCredentials: false,
traditional: true,
urlStamp: true,
urlMark: false,
timeout: 0,
fit: function (response) {
return {
success: response.success,
content: response.content,
error: {
errorMsg: response.errorMsg,
errorCode: response.errorCode,
errorLevel: response.errorLevel
}
}
}
});Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels