From c64f739495136faefeb9f87135b0db1c2f42aa45 Mon Sep 17 00:00:00 2001 From: truthhun <1272881215@qq.com> Date: Fri, 13 Oct 2023 17:22:42 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=8A=A8=E5=88=B7=E6=96=B0=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/components/FormFindPasswordStepOne.vue | 1 + web/components/FormFindPasswordStepTwo.vue | 1 + web/components/FormLogin.vue | 1 + web/components/FormRegister.vue | 3 +++ 4 files changed, 6 insertions(+) diff --git a/web/components/FormFindPasswordStepOne.vue b/web/components/FormFindPasswordStepOne.vue index 6aa1037..a9182f2 100644 --- a/web/components/FormFindPasswordStepOne.vue +++ b/web/components/FormFindPasswordStepOne.vue @@ -89,6 +89,7 @@ export default { this.$message.success('提交成功,请查看您的邮箱') this.disabled = true } else { + this.loadCaptcha() this.$message.error(res.data.message || '请求失败') } this.loading = false diff --git a/web/components/FormFindPasswordStepTwo.vue b/web/components/FormFindPasswordStepTwo.vue index 67369cc..46c748a 100644 --- a/web/components/FormFindPasswordStepTwo.vue +++ b/web/components/FormFindPasswordStepTwo.vue @@ -117,6 +117,7 @@ export default { this.$router.push('/login') this.disabled = true } else { + this.loadCaptcha() this.$message.error(res.data.message || '请求失败') } this.loading = false diff --git a/web/components/FormLogin.vue b/web/components/FormLogin.vue index c4aad72..9c216f5 100644 --- a/web/components/FormLogin.vue +++ b/web/components/FormLogin.vue @@ -106,6 +106,7 @@ export default { } this.loading = false } else { + this.loadCaptcha() this.loading = false } }, diff --git a/web/components/FormRegister.vue b/web/components/FormRegister.vue index 8200535..affa9a2 100644 --- a/web/components/FormRegister.vue +++ b/web/components/FormRegister.vue @@ -206,6 +206,9 @@ export default { } else { this.$router.replace({ name: 'index' }) } + }else{ + this.loadCaptcha() + this.$message.error(res.data.message || '请求失败') } this.loading = false }