From c7ec9e17f6e48335912bad1c07df56ba8eb8f662 Mon Sep 17 00:00:00 2001 From: heyujie <516346543@qq.com> Date: 星期四, 05 五月 2022 13:35:21 +0800 Subject: [PATCH] page subuser --- 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