mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-30 13:53:56 +08:00
fix: 修复 mobile 短信验证码错误重复提示、智能体插件保存异常问题
This commit is contained in:
@@ -240,14 +240,6 @@ async function handleLogin() {
|
||||
catch (error: any) {
|
||||
// 登录失败重新获取验证码
|
||||
refreshCaptcha()
|
||||
// 处理验证码错误 - 从error.message中解析错误码
|
||||
if (error.message.includes('请求错误[10067]')) {
|
||||
toast.warning(t('login.captchaError'))
|
||||
}
|
||||
// 处理账号或密码错误
|
||||
else if (error.message.includes('请求错误[10004]')) {
|
||||
toast.warning(t('message.passwordError'))
|
||||
}
|
||||
}
|
||||
finally {
|
||||
loading.value = false
|
||||
|
||||
Reference in New Issue
Block a user