[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

@@ -40,7 +40,6 @@ import BaseInput from "@/components/base/BaseInput";
import BaseButton from "@/components/base/BaseButton";
import viewPasswordIcon from "@/assets/icons/eye.svg";
import hidePasswordIcon from "@/assets/icons/openEye.svg";
import logoMark from "@/assets/images/logoMark.svg";
export default {
name: "TheLogin",

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) => {