diff options
| author | Ho3ein <ho3ein.sanaei@gmail.com> | 2023-05-06 12:23:41 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-06 12:23:41 +0300 |
| commit | ac31d6d9fb666ba8deec353d0ba783eb6a8b231f (patch) | |
| tree | ea1e1764da0208035a7000f7d884a6c36b55d830 /web/assets | |
| parent | 78638a97373bccc761f46cbbef0fda34a8dedd6c (diff) | |
| parent | 83c853ffb6b896c8a6d1eef4e0354ba1201ebf13 (diff) | |
Merge pull request #347 from hamid-gh98/main
[Feature] import/export database in the panel
Diffstat (limited to 'web/assets')
| -rw-r--r-- | web/assets/css/custom.css | 2 | ||||
| -rw-r--r-- | web/assets/js/axios-init.js | 12 |
2 files changed, 9 insertions, 5 deletions
diff --git a/web/assets/css/custom.css b/web/assets/css/custom.css index d13e3159..671ba24f 100644 --- a/web/assets/css/custom.css +++ b/web/assets/css/custom.css @@ -1,5 +1,5 @@ #app { - height: 100%; + height: 100vh; } .ant-space { diff --git a/web/assets/js/axios-init.js b/web/assets/js/axios-init.js index 22d14d76..bd55c3cf 100644 --- a/web/assets/js/axios-init.js +++ b/web/assets/js/axios-init.js @@ -3,10 +3,14 @@ axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest'; axios.interceptors.request.use( config => { - config.data = Qs.stringify(config.data, { - arrayFormat: 'repeat' - }); + if (config.data instanceof FormData) { + config.headers['Content-Type'] = 'multipart/form-data'; + } else { + config.data = Qs.stringify(config.data, { + arrayFormat: 'repeat', + }); + } return config; }, error => Promise.reject(error) -);
\ No newline at end of file +); |
