1
0
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:
MoonTestUse1
2025-01-04 04:29:27 +06:00
parent f343007b96
commit 08ccd8700d
2 changed files with 1 additions and 6 deletions

View File

@@ -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)
// Сохраняем токен администратора