关闭
{ if (!res.ok) { if (res.status === 418) { throw new Error(i18next.t('login_error_teapot')); }else{ // 处理其他错误 throw new Error(i18next.t('login_failed')); } } return res.json(); }) .then(data => { // 直接跳转到首页 window.location.href = '/'; }) .catch(err => { error = err.message; }) .finally(() => { loading = false; }) ">