From 53cb8137e4232f50c5334176419298f99d41a2bf Mon Sep 17 00:00:00 2001
From: heyujie <516346543@qq.com>
Date: 星期五, 22 四月 2022 15:38:32 +0800
Subject: [PATCH] sass user api to cloud
---
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