mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
прор222в2в2в
This commit is contained in:
@@ -101,11 +101,7 @@ const handleLogin = async () => {
|
||||
formData.append('username', username.value)
|
||||
formData.append('password', password.value)
|
||||
|
||||
const response = await axios.post('/api/auth/admin/login', formData, {
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
}
|
||||
})
|
||||
const response = await axios.post('/api/auth/admin/login', formData)
|
||||
console.log('Ответ от сервера:', response.data)
|
||||
|
||||
// Сохраняем токен администратора
|
||||
|
Reference in New Issue
Block a user