fix(projects): fix multiple calls to the login API when clicking quickly. fixed #697 (#698)

This commit is contained in:
李鹏坤-执手对影成双 2025-01-25 18:38:49 +08:00 committed by GitHub
parent 54e7d6d00a
commit 86da767e24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -107,7 +107,13 @@ async function handleAccountLogin(account: Account) {
</div>
<NDivider class="text-14px text-#666 !m-0">{{ $t('page.login.pwdLogin.otherAccountLogin') }}</NDivider>
<div class="flex-center gap-12px">
<NButton v-for="item in accounts" :key="item.key" type="primary" @click="handleAccountLogin(item)">
<NButton
v-for="item in accounts"
:key="item.key"
:loading="authStore.loginLoading"
type="primary"
@click="handleAccountLogin(item)"
>
{{ item.label }}
</NButton>
</div>