Skip to content

Commit 26c745c

Browse files
authored
Update axios.js
1 parent 9312730 commit 26c745c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lin/plugins/axios.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ _axios.interceptors.request.use((originConfig) => {
6666
if (typeof reqConfig.data[key] === 'object') {
6767
if (reqConfig.data[key] instanceof FileList || reqConfig.data[key] instanceof File || reqConfig.data[key] instanceof Blob) {
6868
hasFile = true
69-
} else {
69+
} else if (reqConfig.data[key].constructor === Object) {
7070
reqConfig.data[key] = JSON.stringify(reqConfig.data[key])
7171
}
7272
}
@@ -256,3 +256,6 @@ export function _delete(url, params = {}) {
256256
params,
257257
})
258258
}
259+
260+
export default _axios
261+

0 commit comments

Comments
 (0)