From 233a10399d7260a454c9a09e6fa3077c1c5041a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8?= Date: Thu, 14 May 2026 10:28:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20UserCaptcha=20?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=20sendState=20=E5=AE=9E=E6=97=B6=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/profile/personalCenter/index.vue | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/src/views/profile/personalCenter/index.vue b/src/views/profile/personalCenter/index.vue index fb08bfd..20e5aa6 100644 --- a/src/views/profile/personalCenter/index.vue +++ b/src/views/profile/personalCenter/index.vue @@ -356,6 +356,35 @@ const updateSendState = () => { sendState.value = { isCounting: t.isCounting.value, countdown: t.countdown.value }; }; +// 监听 editField 变化,实时更新 sendState +watch( + () => editField.value, + () => { + nextTick(() => { + updateSendState(); + }); + } +); + +// 监听倒计时状态变化,实时同步到 sendState +watch( + () => phoneCaptchaState.countdown.value, + () => { + if (editField.value === 'mobile') { + updateSendState(); + } + } +); + +watch( + () => emailCaptchaState.countdown.value, + () => { + if (editField.value === 'email') { + updateSendState(); + } + } +); + // 语言切换 const handleLanguageChange = async (val: number) => { try {