[WIP] Фикс устаревшего токена

This commit is contained in:
megavrilinvv
2022-12-07 18:01:32 +03:00
parent 0765512fb4
commit 910de5b982
2 changed files with 1 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ function handleRequest(method, url, headers, attempts, body, type) {
.then((res) => {
if (res.status === 401) {
localStorage.removeItem("tokenAccess");
return router.push("/login");
router.go("/login");
} else if (res) return res.json();
})
.catch((err) => {