mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-26 00:53:54 +08:00
updata:移动端添加语言切换功能
This commit is contained in:
@@ -196,6 +196,10 @@ async function handleLogin() {
|
||||
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
|
||||
|
||||
@@ -257,6 +257,10 @@ async function handleRegister() {
|
||||
if (error.message.includes('请求错误[10067]')) {
|
||||
toast.warning(t('login.captchaError'))
|
||||
}
|
||||
// 处理手机号码已注册错误
|
||||
else if (error.message.includes('请求错误[10070]')) {
|
||||
toast.warning(t('message.phoneRegistered'))
|
||||
}
|
||||
// 注册失败重新获取验证码
|
||||
refreshCaptcha()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user