From 6d38a71906dea0bf0616b230559f9ff3de16741a Mon Sep 17 00:00:00 2001 From: wangdan-fit2cloud Date: Tue, 18 Nov 2025 11:22:19 +0800 Subject: [PATCH] perf: Login authentication added prompt message --- ui/src/api/knowledge/document.ts | 4 +- .../system-resource-management/document.ts | 4 +- ui/src/api/system-shared/document.ts | 4 +- ui/src/api/system/role.ts | 4 +- ui/src/components/model-select/index.vue | 2 +- .../lang/en-US/views/application-overview.ts | 2 + .../lang/zh-CN/views/application-overview.ts | 3 +- ui/src/locales/lang/zh-CN/views/document.ts | 6 +-- .../zh-Hant/views/application-overview.ts | 2 + .../xpack-component/XPackLimitDrawer.vue | 40 +++++++++++-------- 10 files changed, 42 insertions(+), 29 deletions(-) diff --git a/ui/src/api/knowledge/document.ts b/ui/src/api/knowledge/document.ts index 86587b8b1..9afbee6ac 100644 --- a/ui/src/api/knowledge/document.ts +++ b/ui/src/api/knowledge/document.ts @@ -462,7 +462,7 @@ const postTableDocument: ( } /** - * 获得QA模版 + * 获得QA模板 * @param 参数 fileName,type, */ const exportQATemplate: (fileName: string, type: string, loading?: Ref) => void = ( @@ -474,7 +474,7 @@ const exportQATemplate: (fileName: string, type: string, loading?: Ref) } /** - * 获得table模版 + * 获得table模板 * @param 参数 fileName,type, */ const exportTableTemplate: (fileName: string, type: string, loading?: Ref) => void = ( diff --git a/ui/src/api/system-resource-management/document.ts b/ui/src/api/system-resource-management/document.ts index c661bc5b8..cc9b235d2 100644 --- a/ui/src/api/system-resource-management/document.ts +++ b/ui/src/api/system-resource-management/document.ts @@ -433,7 +433,7 @@ const postTableDocument: ( } /** - * 获得QA模版 + * 获得QA模板 * @param 参数 fileName,type, */ const exportQATemplate: (fileName: string, type: string, loading?: Ref) => void = ( @@ -445,7 +445,7 @@ const exportQATemplate: (fileName: string, type: string, loading?: Ref) } /** - * 获得table模版 + * 获得table模板 * @param 参数 fileName,type, */ const exportTableTemplate: (fileName: string, type: string, loading?: Ref) => void = ( diff --git a/ui/src/api/system-shared/document.ts b/ui/src/api/system-shared/document.ts index dc5c79fdc..10638938b 100644 --- a/ui/src/api/system-shared/document.ts +++ b/ui/src/api/system-shared/document.ts @@ -433,7 +433,7 @@ const postTableDocument: ( } /** - * 获得QA模版 + * 获得QA模板 * @param 参数 fileName,type, */ const exportQATemplate: (fileName: string, type: string, loading?: Ref) => void = ( @@ -445,7 +445,7 @@ const exportQATemplate: (fileName: string, type: string, loading?: Ref) } /** - * 获得table模版 + * 获得table模板 * @param 参数 fileName,type, */ const exportTableTemplate: (fileName: string, type: string, loading?: Ref) => void = ( diff --git a/ui/src/api/system/role.ts b/ui/src/api/system/role.ts index 18e74cb1e..096df3537 100644 --- a/ui/src/api/system/role.ts +++ b/ui/src/api/system/role.ts @@ -14,7 +14,7 @@ const getRoleList: (loading?: Ref) => Promise) => Promise> = (role_type, loading) => { return get(`${prefix}/template/${role_type}`, undefined, loading) @@ -106,4 +106,4 @@ export default { getRoleMemberList, CreateMember, deleteRoleMember -} \ No newline at end of file +} diff --git a/ui/src/components/model-select/index.vue b/ui/src/components/model-select/index.vue index b714952fd..223f641b0 100644 --- a/ui/src/components/model-select/index.vue +++ b/ui/src/components/model-select/index.vue @@ -61,7 +61,7 @@ - + {{ - $t('views.applicationOverview.appInfo.LimitDialog.timesDays') - }} + $t('views.applicationOverview.appInfo.LimitDialog.timesDays') + }} - + @@ -88,8 +88,16 @@ :class="form.authentication_value.type === 'login' ? 'active' : ''" > -

+

{{ $t('views.system.authentication.title') }} + + + + {{ $t('views.applicationOverview.appInfo.LimitDialog.toSettingChatUser') }} @@ -111,7 +119,7 @@ > @@ -178,18 +186,18 @@