Browse Source

update reg page

fengchang 1 year ago
parent
commit
1d46547cc1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      hichina-main-front-mobile-first/src/pages/RegisterPage.vue

+ 3 - 0
hichina-main-front-mobile-first/src/pages/RegisterPage.vue

@@ -92,6 +92,7 @@ export default {
           password: password.value,
         };
 
+        gp.$showLoading($q);
         api
           .post("/api/public/register", data)
           .then((response) => {
@@ -102,9 +103,11 @@ export default {
             } else {
               gp.$generalNotify($q, false, response.data.message);
             }
+            gp.$hideLoading($q);
             gp.$goPage("/regsuccess");
           })
           .catch((e) => {
+            gp.$hideLoading($q);
             gp.$generalNotify($q, false, "Error message: " + e);
           });
       } else {