管理配置继续使用弹窗,管理员列表不再自动显示新生成的授权码,只有点击查看授权码并完成验证后显示对应账号的授权码。
This commit is contained in:
parent
bf89198414
commit
47e56a7471
@ -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 }
|
||||
|
||||
@ -84,7 +84,7 @@
|
||||
</div>
|
||||
<p v-if="!status.account_available" class="notification-warning">账号已禁用或尚未修改临时密码,不能生成或使用通知凭据。</p>
|
||||
|
||||
<div v-if="status.configured" class="notification-credential">
|
||||
<div v-if="status.configured && (!manager || userId)" class="notification-credential">
|
||||
<span class="notification-credential-label">通知发信凭据</span>
|
||||
<template v-if="secretVisible && secret">
|
||||
<code class="notification-credential-code">{{ secret }}</code>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user