修正通知授权列表纵向布局并展示首次生成的授权码
Some checks are pending
Security Checks / security (push) Waiting to run

This commit is contained in:
smail 2026-09-27 19:11:12 +08:00
parent 504bd9de64
commit 16b1986c16
2 changed files with 13 additions and 8 deletions

View File

@ -271,7 +271,8 @@
.notification-settings:has(> .notification-manager-panel) > .notification-manager-panel {
display: flex;
align-items: center;
flex-direction: column;
align-items: stretch;
gap: 12px;
}
@ -284,7 +285,7 @@
}
.notification-settings:has(> .notification-manager-panel) > .notification-manager-panel :deep(.el-table) {
flex: 1 1 auto;
flex: 0 0 auto;
width: 100% !important;
min-width: 0 !important;
}
@ -332,6 +333,7 @@
.notification-settings:has(> .notification-manager-panel) > .notification-manager-panel .el-pagination {
flex: 0 0 auto;
align-self: flex-end;
margin-top: 0;
}
@ -347,9 +349,10 @@
}
.notification-manager-secret {
flex: 1 0 100%;
flex: 0 0 auto;
min-width: 0;
display: grid;
grid-template-columns: minmax(0, 1fr) auto;
grid-template-columns: minmax(0, 1fr);
gap: 8px 14px;
align-items: center;
padding: 10px 12px;
@ -572,7 +575,7 @@
@media (max-width: 980px) {
.notification-settings:has(> .notification-manager-panel) > .notification-manager-panel {
align-items: stretch;
flex-wrap: wrap;
flex-wrap: nowrap;
}
.notification-settings:has(> .notification-manager-panel) > .notification-manager-panel h3 {
@ -580,7 +583,7 @@
}
.notification-settings:has(> .notification-manager-panel) > .notification-manager-panel :deep(.el-table) {
flex-basis: 100%;
flex-basis: auto;
}
.notification-settings:has(> .notification-manager-panel) > .notification-manager-panel .el-pagination {

View File

@ -229,8 +229,10 @@ export function usePage(props = {}) {
user_id: target.user_id, version: target.version
})))
if (disposed) return
if (sequence === secretSequence && (!manager.value || props.userId)) showSecret(data.code, target.account)
else clearSecret()
if (sequence === secretSequence && target.user_id === selectedID.value) {
if (manager.value && !props.userId) manageVisible.value = false
showSecret(data.code, target.account)
} else clearSecret()
await Promise.all([loadStatus(), loadAccounts()])
} catch (cause) { showError(cause) }
finally { submitting.value = false }