update .vue

This commit is contained in:
Chen, Tai-Lin committed 2024-03-04 23:37:46 +08:00
1 parent af9b443865
commit f52017ef9f
14 files changed
+16 -127

No files matched your search

-4
View File
@@ -25,22 +25,18 @@ const handleLogin = async ({
if (isSuccess) success()
} catch (err) {
if (err instanceof TooManyRequestsError) {
// error('Too many requests. Try again in 2 minutes.')
error('太多請求,兩分鐘後再試一次。')
return
}
if (err instanceof UnauthorizedError) {
// error('Wrong username or password.')
error('錯誤的帳號名稱或密碼。')
return
}
if (err instanceof ValidationError) {
// error('Invalid username or password.')
error('無效的帳號名稱或密碼。')
return
}
console.error(err)
// error('Something went wrong.')
error('出了點問題。')
}
}