diff --git a/src/views/login/registerUser.vue b/src/views/login/registerUser.vue
index 455385254..18d5686ad 100644
--- a/src/views/login/registerUser.vue
+++ b/src/views/login/registerUser.vue
@@ -66,7 +66,7 @@
- 立即创建
+ 立即创建
返回登录
@@ -129,6 +129,7 @@ export default {
passWordCodeTime: 0,
passWordTime: null,
message: '',
+ loading:false,
operation: '',
title: '账号注册',
form: {
@@ -270,11 +271,19 @@ export default {
} else {
data.email = this.form.email;
}
+ this.loading = true;
registerUserNew(data).then(resp => {
+ this.loading = false;
this.$message.success('账号注册成功!' );
this.doClose();
}).catch(error => {
- this.$message.error('账号注册失败:' + error.message);
+ this.loading = false;
+ if (error.code == '10012') {
+ this.$message.error('账号注册失败:账号已存在');
+ } else {
+ this.$message.error('账号注册失败:' + error.message);
+ }
+
});
}
});