From 1ef37dd00bd8e283a6345857306c8d31b4d57e70 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 29 Sep 2026 17:09:37 +0800 Subject: [PATCH] feat: enhance portal authentication settings with dynamic login method options and default selection --- ui/src/api/types/portal.ts | 5 +- .../components/ButtonPortalAuthSetting.vue | 70 ++++++++++++------- .../chat-management/portal-setting/index.vue | 4 +- ui/src/views/system/home/index.vue | 47 ++++++++----- 4 files changed, 83 insertions(+), 43 deletions(-) diff --git a/ui/src/api/types/portal.ts b/ui/src/api/types/portal.ts index 905382237be..05200524c16 100644 --- a/ui/src/api/types/portal.ts +++ b/ui/src/api/types/portal.ts @@ -1,10 +1,13 @@ -import type { Dict } from './common' +import type { Dict, OptionItem } from './common' export interface PortalAuthConfig extends Dict { + type?: string login_value?: string[] max_attempts?: number failed_attempts?: number lock_time?: number + system_options?: OptionItem[] + auth_types?: OptionItem[] } export interface PortalSetting { diff --git a/ui/src/views/system/chat-management/portal-setting/components/ButtonPortalAuthSetting.vue b/ui/src/views/system/chat-management/portal-setting/components/ButtonPortalAuthSetting.vue index 0271bf7b424..a800b827871 100644 --- a/ui/src/views/system/chat-management/portal-setting/components/ButtonPortalAuthSetting.vue +++ b/ui/src/views/system/chat-management/portal-setting/components/ButtonPortalAuthSetting.vue @@ -1,38 +1,45 @@