mirror of
https://github.com/linux-do/new-api.git
synced 2025-11-07 22:53:41 +08:00
fix auth
Signed-off-by: wozulong <>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user