同步显示接口报错返回内容

This commit is contained in:
谢思 2023-09-08 14:32:31 +08:00
parent 51ba88809f
commit 76c6e5d451
1 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,8 @@ function Register(props){
callback();
}else{
setGetCaptchaBut(false);
callback(response.data.status === -2 ? `${registerType ? '邮箱' : '手机号'}已被注册` : response.data.message);
// callback(response.data.status === -2 ? `${registerType ? '' : ''}` : response.data.message);
callback(response.data.message);
}
}):callback();setEmailStr(undefined);
}else{