diff --git a/apps/vben5/apps/app-antd/src/views/_core/authentication/login.vue b/apps/vben5/apps/app-antd/src/views/_core/authentication/login.vue index ea2963eef..5550ce382 100644 --- a/apps/vben5/apps/app-antd/src/views/_core/authentication/login.vue +++ b/apps/vben5/apps/app-antd/src/views/_core/authentication/login.vue @@ -9,7 +9,7 @@ import { computed, nextTick, onMounted, useTemplateRef } from 'vue'; import { AuthenticationLogin, useVbenModal, z } from '@vben/common-ui'; import { $t } from '@vben/locales'; -import { useAbpStore } from '@abp/core'; +import { useAbpStore, useSettings } from '@abp/core'; import { useAbpConfigApi } from '#/api/core/useAbpConfigApi'; import { useAuthStore } from '#/store'; @@ -27,6 +27,8 @@ defineOptions({ name: 'Login' }); const abpStore = useAbpStore(); const authStore = useAuthStore(); +const { isTrue } = useSettings(); + const { getConfigApi } = useAbpConfigApi(); const login = useTemplateRef('login'); @@ -118,6 +120,7 @@ onMounted(onInit); ref="login" :form-schema="formSchema" :loading="authStore.loginLoading" + :show-register="isTrue('Abp.Account.IsSelfRegistrationEnabled')" @submit="onLogin" >