Explorar el Código

update reg page

fengchang hace 1 año
padre
commit
1d46547cc1
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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 {