Merge pull request #1317 from XiaoXinYo/master

Fix(frontend):初始化创建账号时弹出错误信息[object Object ]
This commit is contained in:
Unitwk 2024-08-01 10:17:30 +08:00 committed by GitHub
commit f4181c9095
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,11 @@ const createUser = async () => {
await updateUserInfo();
step.value++;
} catch (err: any) {
reportErrorMsg(err.message);
err.errorFields.forEach(field => {
field.errors.forEach(error => {
reportErrorMsg(error);
});
});
} finally {
installLoading.value = false;
}