mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-17 21:25:06 +00:00
filters
This commit is contained in:
+4073
File diff suppressed because it is too large
Load Diff
@@ -101,14 +101,16 @@ export default function request (options) {
|
||||
const { response } = error
|
||||
let msg
|
||||
let status
|
||||
let otherData = {}
|
||||
if (response) {
|
||||
status = response.status
|
||||
const { data, statusText } = response
|
||||
otherData = data
|
||||
status = response.status
|
||||
msg = data.message || statusText
|
||||
} else {
|
||||
status = 600
|
||||
msg = 'Network Error'
|
||||
}
|
||||
return { success: false, status, message: msg }
|
||||
return { success: false, status, message: msg, ...otherData }
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user