fix: bug fix

This commit is contained in:
dataeaseShu
2025-07-25 16:29:08 +08:00
parent 75d8505d49
commit daca58507c
3 changed files with 9 additions and 1 deletions
+1
View File
@@ -225,6 +225,7 @@
"field_type": "Field type",
"field_name": "Field name",
"copy": "Copy",
"incorrect_email_format": "Incorrect email format",
"the_original_one": "Are you sure you want to restore the password to the original one?",
"relevant_content_found": "No relevant content found",
"please_enter": "Please enter",
+1
View File
@@ -225,6 +225,7 @@
"confirm": "确定",
"copy": "复制",
"the_original_one": "确认恢复为初始密码吗?",
"incorrect_email_format": "邮箱格式不对",
"enabled_status": "启用状态",
"custom_notes": "自定义备注",
"field_type": "字段类型",
+7 -1
View File
@@ -457,6 +457,12 @@ const rules = {
message: t('datasource.please_enter') + t('common.empty') + t('user.email'),
trigger: 'blur',
},
{
required: true,
pattern: /^[a-zA-Z0-9_._-]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/,
message: t('datasource.incorrect_email_format'),
trigger: 'blur',
},
],
}
@@ -739,7 +745,7 @@ const editTerm = () => {
})
}
const duplicateName = async () => {
const duplicateName = () => {
if (state.form.id) {
editTerm()
} else {