Skip to content

Commit 86da767

Browse files
authored
fix(projects): fix multiple calls to the login API when clicking quickly. fixed #697 (#698)
1 parent 54e7d6d commit 86da767

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/views/_builtin/login/modules/pwd-login.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,13 @@ async function handleAccountLogin(account: Account) {
107107
</div>
108108
<NDivider class="text-14px text-#666 !m-0">{{ $t('page.login.pwdLogin.otherAccountLogin') }}</NDivider>
109109
<div class="flex-center gap-12px">
110-
<NButton v-for="item in accounts" :key="item.key" type="primary" @click="handleAccountLogin(item)">
110+
<NButton
111+
v-for="item in accounts"
112+
:key="item.key"
113+
:loading="authStore.loginLoading"
114+
type="primary"
115+
@click="handleAccountLogin(item)"
116+
>
111117
{{ item.label }}
112118
</NButton>
113119
</div>

0 commit comments

Comments
 (0)