This commit is contained in:
2025-05-19 02:35:35 +07:00
parent e97a318237
commit bc88340480
2 changed files with 16 additions and 5 deletions
+7 -2
View File
@@ -37,7 +37,13 @@
},
}
)
.then(response => response.json())
.then(response => {
if (response.status == 401) {
router.push('/login');
return
}
return response.json()
})
.then(data => {
team.value = data
const newActions = team.value?.actions
@@ -46,7 +52,6 @@
}
})
.catch(error => {
router.push('/login');
console.error('Ошибка:', error)
});
}