From 1aa569e81c6fec6684a28df448550179067e5698 Mon Sep 17 00:00:00 2001 From: colin Date: Fri, 30 May 2025 14:39:21 +0800 Subject: [PATCH] feat(vben5): The login page is configured for self-registration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 登录页根据设置启用自注册 --- .../apps/app-antd/src/views/_core/authentication/login.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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" >