123
dcc
2024-06-05 f15ad3456b47e43646234b9c91c3ddd77ab2cd02
src/page/login/register.vue
@@ -129,11 +129,7 @@
      } else if (isNull(this.rePassword)) {
        Notify({ type: "warning", message: this.$t("hj31") });
      } else {
        if (!/(^[1-9]\d*$)/.test(this.phone)) {
          Notify({ type: "warning", message: this.$t("hj28") });
        } else if (this.phone.toString().length != 10) {
          Notify({ type: "warning", message: this.$t("hj28") });
        } else if (this.userPassword !== this.rePassword) {
        if (this.userPassword !== this.rePassword) {
          this.password = 0;
          this.password2 = 0;
          Notify({ type: "warning", message: this.$t("hj32") });
@@ -151,6 +147,7 @@
          };
          let data = await api.register(opts);
          if (data.status === 0) {
            Notify({ type: "success", message: data.msg });
            setTimeout(() => {
              this.$router.push("/login");
            }, 1000);