mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-18 00:16:37 +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) {
|
switch (error.response.status) {
|
||||||
case 401:
|
case 401:
|
||||||
// toast.error('错误:未登录或登录已过期,请重新登录!', showErrorOptions);
|
// toast.error('错误:未登录或登录已过期,请重新登录!', showErrorOptions);
|
||||||
localStorage.removeItem('user');
|
|
||||||
window.location.href = '/login?expired=true';
|
window.location.href = '/login?expired=true';
|
||||||
break;
|
break;
|
||||||
case 429:
|
case 429:
|
||||||
|
Loading…
Reference in New Issue
Block a user