u
This commit is contained in:
1 parent
52112bd277
commit
1da52dc4f4
66 files changed
+3294
-721
No files matched your search
@@ -124,13 +124,4 @@ function isDownloadResponse(headers: any): boolean {
|
||||
return /application\/(?:octet-stream|force-download|pdf|vnd.ms-excel|msexcel|OCTET-STREAM)/.test(contentType || '')
|
||||
}
|
||||
|
||||
function parseJsonOrReturnString(input: any) {
|
||||
try {
|
||||
return JSON.parse(input)
|
||||
}
|
||||
catch {
|
||||
return input
|
||||
}
|
||||
}
|
||||
|
||||
export default axiosInstance
|
||||
Reference in new issue
Block a user