fix: 修复加载状态时,回车仍然可提交Bug

This commit is contained in:
AN 2025-05-20 10:16:06 +08:00
parent c53f320fef
commit 6589f3d0e5

View File

@ -121,7 +121,14 @@ async function handleSocialLogin(type: Api.System.SocialSource) {
</script>
<template>
<NForm ref="formRef" :model="model" :rules="rules" size="large" :show-label="false" @keyup.enter="handleSubmit">
<NForm
ref="formRef"
:model="model"
:rules="rules"
size="large"
:show-label="false"
@keyup.enter="() => !authStore.loginLoading && handleSubmit()"
>
<NFormItem v-if="tenantEnabled" path="tenantId">
<NSelect
v-model:value="model.tenantId"