diff --git a/frontend/src/views/components/SystemNotification/SystemNotification.js b/frontend/src/views/components/SystemNotification/SystemNotification.js index 44a583f..c1b6376 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 a321c54..3f9b4db 100644 --- a/frontend/src/views/components/SystemNotification/SystemNotification.vue +++ b/frontend/src/views/components/SystemNotification/SystemNotification.vue @@ -84,7 +84,7 @@
账号已禁用或尚未修改临时密码,不能生成或使用通知凭据。
-{{ secret }}