perf: Improve error prompts for OAuth2 address validation

This commit is contained in:
fit2cloud-chenyw
2025-12-04 10:54:20 +08:00
committed by fit2cloud-chenyw
parent 02c945abe8
commit b026697cef
2 changed files with 2 additions and 2 deletions
@@ -76,7 +76,7 @@ const form_config_list = ref<any[]>([
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()
}
@@ -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()
}