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 9312730 commit 26c745cCopy full SHA for 26c745c
src/lin/plugins/axios.js
@@ -66,7 +66,7 @@ _axios.interceptors.request.use((originConfig) => {
66
if (typeof reqConfig.data[key] === 'object') {
67
if (reqConfig.data[key] instanceof FileList || reqConfig.data[key] instanceof File || reqConfig.data[key] instanceof Blob) {
68
hasFile = true
69
- } else {
+ } else if (reqConfig.data[key].constructor === Object) {
70
reqConfig.data[key] = JSON.stringify(reqConfig.data[key])
71
}
72
@@ -256,3 +256,6 @@ export function _delete(url, params = {}) {
256
params,
257
})
258
259
+
260
+export default _axios
261
0 commit comments