mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-17 16:06:38 +08:00
fix auth
Signed-off-by: wozulong <>
This commit is contained in:
parent
811019bf5c
commit
310f8c247e
@ -79,7 +79,6 @@ export function showError(error) {
|
||||
switch (error.response.status) {
|
||||
case 401:
|
||||
// toast.error('错误:未登录或登录已过期,请重新登录!', showErrorOptions);
|
||||
localStorage.removeItem('user');
|
||||
window.location.href = '/login?expired=true';
|
||||
break;
|
||||
case 429:
|
||||
|
Loading…
Reference in New Issue
Block a user