From 4707139df757e848b8746f9d7dcb837cdf5d78c3 Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期五, 22 四月 2022 16:30:17 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/web/saas-web

---
 src/views/register/components/ResetPassword.vue |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/src/views/register/components/ResetPassword.vue b/src/views/register/components/ResetPassword.vue
index 372ef35..ffcab2b 100644
--- a/src/views/register/components/ResetPassword.vue
+++ b/src/views/register/components/ResetPassword.vue
@@ -90,7 +90,7 @@
 </template>
 
 <script>
-import { getVerifyCode } from "@/api/login";
+import { getVerifyCode, forgetPwd } from "@/api/login";
 import { isPhone, validPassword } from "@/scripts/validate"; // 姝e垯鏂囦欢
 
 export default {
@@ -181,7 +181,17 @@
         }
       });
     },
-    submit() {
+    async submit() {
+      const res = await forgetPwd({
+        phoneNum: this.formData.phoneNum,
+        newPwd: this.formData.password,
+      });
+      if (res && res.success) {
+        this.$notify({
+          type: "success",
+          message: "閲嶇疆鎴愬姛",
+        });
+      }
       this.isReseted = true;
     },
   },

--
Gitblit v1.8.0