bug fix
This commit is contained in:
@@ -29,6 +29,7 @@ httpClient.interceptors.response.use(
|
|||||||
async (error) => {
|
async (error) => {
|
||||||
if (error.response?.status === 401) {
|
if (error.response?.status === 401) {
|
||||||
Cookies.remove('panda_admin');
|
Cookies.remove('panda_admin');
|
||||||
|
window.location.href = '/login';
|
||||||
}
|
}
|
||||||
|
|
||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
|
|||||||
Reference in New Issue
Block a user