We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bac49af commit 351c1d1Copy full SHA for 351c1d1
src/lin/plugins/axios.js
@@ -64,10 +64,10 @@ _axios.interceptors.request.use((originConfig) => {
64
let hasFile = false
65
Object.keys(reqConfig.data).forEach((key) => {
66
if (typeof reqConfig.data[key] === 'object') {
67
- let item = reqConfig.data[key]
+ const item = reqConfig.data[key]
68
if (item instanceof FileList || item instanceof File || item instanceof Blob) {
69
hasFile = true
70
- } else if (reqConfig.data[key].constructor === Object) {
+ } else if (Object.prototype.toString.call(item) === '[object Object]') {
71
reqConfig.data[key] = JSON.stringify(reqConfig.data[key])
72
}
73
0 commit comments