consumer模块完成度95%,实现数据库多端注册登录,优化安卓端小程序bug
This commit is contained in:
@@ -325,8 +325,10 @@ const handleLogin = async () => {
|
||||
errorMsg.includes('邮箱') && errorMsg.includes('确认')) {
|
||||
throw new Error('邮箱未确认,请先检查邮箱并点击确认链接')
|
||||
} else if (errorMsg.includes('Invalid login credentials') ||
|
||||
errorCode === 'invalid_credentials') {
|
||||
throw new Error('邮箱或密码错误')
|
||||
errorCode === 'invalid_credentials' ||
|
||||
errorMsg.includes('credentials') ||
|
||||
errorMsg.includes('invalid')) {
|
||||
throw new Error('用户名或密码错误')
|
||||
} else {
|
||||
throw new Error(errorMsg != '' ? errorMsg : '登录失败,请重试')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user