mirror of
https://github.com/whyour/qinglong.git
synced 2026-07-17 01:14:50 +08:00
优化登录验证、退出逻辑
This commit is contained in:
@@ -28,11 +28,6 @@ _request.interceptors.request.use((url, options) => {
|
||||
|
||||
_request.interceptors.response.use(async (response) => {
|
||||
const res = await response.clone();
|
||||
if (res.status === 401) {
|
||||
setTimeout(() => {
|
||||
history.push('/login');
|
||||
});
|
||||
}
|
||||
return response;
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user