Skip to content

Commit

Permalink
fix(projects): fix #697 multiple calls to the login API when clicking…
Browse files Browse the repository at this point in the history
… quickly
  • Loading branch information
zsdycs committed Jan 25, 2025
1 parent 5cf3236 commit dfa1ee3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/views/_builtin/login/modules/pwd-login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit dfa1ee3

Please sign in to comment.