1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

доработка админ панели

This commit is contained in:
MoonTestUse1
2025-01-03 03:04:20 +06:00
parent 28b79052ef
commit aa29946e78
3 changed files with 20 additions and 6 deletions

View File

@@ -132,12 +132,11 @@ export default {
'Content-Type': 'application/json'
},
validateStatus: function (status) {
return status < 500 // Разрешаем все статусы < 500
return status < 500
}
})
if (response.status === 307) {
// Если получили редирект, делаем запрос по новому URL
const redirectUrl = response.headers.location
const finalResponse = await axios.post(redirectUrl, this.formData, {
headers: {