From 47e56a7471bb80a237aad8b136da526e166332f0 Mon Sep 17 00:00:00 2001 From: smail Date: Sun, 27 Sep 2026 16:34:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6=E6=8E=88=E6=9D=83=E7=A0=81?= =?UTF-8?q?=E4=BB=85=E6=8C=89=E6=9F=A5=E7=9C=8B=E6=93=8D=E4=BD=9C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 管理配置继续使用弹窗,管理员列表不再自动显示新生成的授权码,只有点击查看授权码并完成验证后显示对应账号的授权码。 --- .../views/components/SystemNotification/SystemNotification.js | 3 ++- .../views/components/SystemNotification/SystemNotification.vue | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/components/SystemNotification/SystemNotification.js b/frontend/src/views/components/SystemNotification/SystemNotification.js index 44a583f2..c1b6376a 100644 --- a/frontend/src/views/components/SystemNotification/SystemNotification.js +++ b/frontend/src/views/components/SystemNotification/SystemNotification.js @@ -229,7 +229,8 @@ export function usePage(props = {}) { user_id: target.user_id, version: target.version }))) if (disposed) return - if (sequence === secretSequence) showSecret(data.code, target.account) + if (sequence === secretSequence && (!manager.value || props.userId)) showSecret(data.code, target.account) + else clearSecret() await Promise.all([loadStatus(), loadAccounts()]) } catch (cause) { showError(cause) } finally { submitting.value = false } diff --git a/frontend/src/views/components/SystemNotification/SystemNotification.vue b/frontend/src/views/components/SystemNotification/SystemNotification.vue index a321c544..3f9b4db2 100644 --- a/frontend/src/views/components/SystemNotification/SystemNotification.vue +++ b/frontend/src/views/components/SystemNotification/SystemNotification.vue @@ -84,7 +84,7 @@

账号已禁用或尚未修改临时密码,不能生成或使用通知凭据。

-
+
通知发信凭据