page errorPernission

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-08-26 17:40:11 +07:00
parent e09d0afe73
commit bc29de9f1c
3 changed files with 33 additions and 1 deletions

View file

@ -32,7 +32,8 @@ http.interceptors.response.use(
if (typeof error !== undefined) {
// eslint-disable-next-line no-prototype-builtins
if (error.hasOwnProperty("response")) {
if (error.response.status === 401 || error.response.status === 403) {
if (error.response.status === 403) {
window.location.href = "/error";
// kcLogout();
// Store.commit("SET_ERROR_MESSAGE", error.response.data.message);
// Store.commit("REMOVE_ACCESS_TOKEN")