generated from VLADIMIR/template_frontend
fix
This commit is contained in:
@@ -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)
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user