|
|
@@ -524,6 +524,7 @@ export default {
|
|
|
})
|
|
|
.catch(e => {
|
|
|
console.log(e);
|
|
|
+ this.$message.error(e.error);
|
|
|
this.loading = false;
|
|
|
});
|
|
|
})
|
|
|
@@ -531,6 +532,19 @@ export default {
|
|
|
this.loading = false;
|
|
|
this.register = false;
|
|
|
});
|
|
|
+ } else {
|
|
|
+ this.$http
|
|
|
+ .post('/user/regOrganization', this.registerInfo, { body: 'json' })
|
|
|
+ .then(res => {
|
|
|
+ this.loading = false;
|
|
|
+ this.$message.success('注册成功');
|
|
|
+ this.register = false;
|
|
|
+ })
|
|
|
+ .catch(e => {
|
|
|
+ console.log(e);
|
|
|
+ this.$message.error(e.error);
|
|
|
+ this.loading = false;
|
|
|
+ });
|
|
|
}
|
|
|
})
|
|
|
.catch(e => {
|