登录页加载态、日志动作补齐与绑定按钮禁用态
CI / test (push) Successful in 27s
Release / release (push) Successful in 28s

This commit is contained in:
2026-07-14 11:01:09 +08:00
parent e2cdb99194
commit 08fa529348
4 changed files with 53 additions and 2 deletions
@@ -204,6 +204,11 @@ const bindableProviders = computed(() => {
return out
})
/** 已绑定的 provider 集合;绑定入口按钮据此禁用,解绑后自动恢复 */
const boundProviders = computed(
() => new Set((identities.data.value?.items ?? []).map((it) => it.provider)),
)
async function bindProvider(provider: string) {
binding.value = provider
try {
@@ -507,9 +512,10 @@ async function deleteProvider(p: ProviderType) {
:key="p"
size="small"
:loading="binding === p"
:disabled="boundProviders.has(p)"
@click="bindProvider(p)"
>
绑定 {{ displayNameOf(p) }}
{{ boundProviders.has(p) ? '已绑定' : '绑定' }} {{ displayNameOf(p) }}
</NButton>
<span class="text-xs text-ink-3">将跳转到对应平台授权</span>
</div>