From 6a801c1b8da8caf3df215879259fa33ad09137f4 Mon Sep 17 00:00:00 2001 From: smail Date: Sun, 27 Sep 2026 01:57:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=80=9A=E7=9F=A5=E5=87=AD?= =?UTF-8?q?=E6=8D=AE=E6=9F=A5=E7=9C=8B=E5=A4=B1=E8=B4=A5=E5=90=8E=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E7=8A=B6=E6=80=81=E4=B8=8D=E5=90=8C=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SystemNotification/SystemNotification.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/components/SystemNotification/SystemNotification.js b/frontend/src/views/components/SystemNotification/SystemNotification.js index a3d3503..241e382 100644 --- a/frontend/src/views/components/SystemNotification/SystemNotification.js +++ b/frontend/src/views/components/SystemNotification/SystemNotification.js @@ -95,8 +95,17 @@ export function usePage(props = {}) { if (disposed || sequence !== secretSequence || target.user_id !== status.value?.user_id) return clearVerification() showSecret(data.code, target.account) - } catch (cause) { showError(cause) } - finally { + } catch (cause) { + if (disposed || sequence !== secretSequence) return + verifyPassword.value = '' + showError(cause) + await Promise.all([loadStatus(), loadAccounts()]) + if (disposed || sequence !== secretSequence) return + if (!canReveal.value || target.user_id !== status.value?.user_id || target.version !== status.value?.version) { + clearSecret() + clearVerification() + } + } finally { verifyPassword.value = '' submitting.value = false }