[WIP] Фикс устаревшего токена
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user