fix style height when rotating + move cookie util to their specific file

This commit is contained in:
Hamidreza Ghavami
2023-05-08 18:04:12 +04:30
parent 00777e3a25
commit d137deccfa
6 changed files with 89 additions and 80 deletions

View File

@@ -2,7 +2,7 @@ axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded
axios.defaults.headers.common['X-Requested-With'] = 'XMLHttpRequest';
axios.interceptors.request.use(
config => {
(config) => {
if (config.data instanceof FormData) {
config.headers['Content-Type'] = 'multipart/form-data';
} else {
@@ -12,5 +12,5 @@ axios.interceptors.request.use(
}
return config;
},
error => Promise.reject(error)
(error) => Promise.reject(error),
);