new file
This commit is contained in:
@@ -37,18 +37,9 @@ apiClient.interceptors.response.use(
|
||||
Cookies.remove("token");
|
||||
Cookies.remove("user");
|
||||
|
||||
if (
|
||||
typeof window !== "undefined" &&
|
||||
!window.location.pathname.includes("/")
|
||||
) {
|
||||
window.location.href = "/";
|
||||
}
|
||||
}
|
||||
|
||||
if (status === 403) {
|
||||
if (typeof window !== "undefined") {
|
||||
window.location.href = "/Impresiones";
|
||||
}
|
||||
}
|
||||
}
|
||||
return Promise.reject(error);
|
||||
|
||||
Reference in New Issue
Block a user