From e12584792ef27c9c669e6cdcb8128e42165b5438 Mon Sep 17 00:00:00 2001 From: fit2cloud-chenyw Date: Thu, 4 Dec 2025 10:50:10 +0800 Subject: [PATCH] perf: Improve error prompts for OAuth2 address validation --- frontend/src/views/system/authentication/Oauth2Editor.vue | 2 +- frontend/src/views/system/authentication/OidcEditor.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/system/authentication/Oauth2Editor.vue b/frontend/src/views/system/authentication/Oauth2Editor.vue index a09145cb..f36a7d82 100644 --- a/frontend/src/views/system/authentication/Oauth2Editor.vue +++ b/frontend/src/views/system/authentication/Oauth2Editor.vue @@ -76,7 +76,7 @@ const form_config_list = ref([ const validateUrl = (rule, value, callback) => { const reg = new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/) if (!reg.test(value)) { - callback(new Error(t('system.incorrect_please_re_enter_de'))) + callback(new Error(t('authentication.incorrect_please_re_enter'))) } else { callback() } diff --git a/frontend/src/views/system/authentication/OidcEditor.vue b/frontend/src/views/system/authentication/OidcEditor.vue index 27486834..fcaf6e17 100644 --- a/frontend/src/views/system/authentication/OidcEditor.vue +++ b/frontend/src/views/system/authentication/OidcEditor.vue @@ -28,7 +28,7 @@ const state = reactive({ const validateUrl = (rule, value, callback) => { const reg = new RegExp(/(http|https):\/\/([\w.]+\/?)\S*/) if (!reg.test(value)) { - callback(new Error(t('system.incorrect_please_re_enter'))) + callback(new Error(t('authentication.incorrect_please_re_enter'))) } else { callback() }