updata:移动端添加语言切换功能

This commit is contained in:
rainv123
2025-09-26 17:03:17 +08:00
parent 99443d1c9f
commit 1a7b1d24fa
5 changed files with 14 additions and 1 deletions
@@ -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()
}