fix(user-client): no action when response 404
This commit is contained in:
@@ -28,9 +28,6 @@ export const userClient = new RequestClient({
|
|||||||
userStore.resetStore();
|
userStore.resetStore();
|
||||||
router.push('/login');
|
router.push('/login');
|
||||||
}
|
}
|
||||||
if (err.response?.status === 404) {
|
|
||||||
router.push('/404');
|
|
||||||
}
|
|
||||||
return Promise.reject(error);
|
return Promise.reject(error);
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user