licailing 4 years ago
parent
commit
0b995444b7
1 changed files with 14 additions and 0 deletions
  1. 14 0
      src/main/vue/src/views/Login.vue

+ 14 - 0
src/main/vue/src/views/Login.vue

@@ -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 => {