File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 225225 "field_type" : " Field type" ,
226226 "field_name" : " Field name" ,
227227 "copy" : " Copy" ,
228+ "incorrect_email_format" : " Incorrect email format" ,
228229 "the_original_one" : " Are you sure you want to restore the password to the original one?" ,
229230 "relevant_content_found" : " No relevant content found" ,
230231 "please_enter" : " Please enter" ,
Original file line number Diff line number Diff line change 225225 "confirm" : " 确定" ,
226226 "copy" : " 复制" ,
227227 "the_original_one" : " 确认恢复为初始密码吗?" ,
228+ "incorrect_email_format" : " 邮箱格式不对" ,
228229 "enabled_status" : " 启用状态" ,
229230 "custom_notes" : " 自定义备注" ,
230231 "field_type" : " 字段类型" ,
Original file line number Diff line number Diff line change @@ -457,6 +457,12 @@ const rules = {
457457 message: t (' datasource.please_enter' ) + t (' common.empty' ) + t (' user.email' ),
458458 trigger: ' blur' ,
459459 },
460+ {
461+ required: true ,
462+ pattern: / ^ [a-zA-Z0-9 _. _-] + @[a-zA-Z0-9 _-] + (\. [a-zA-Z0-9 _-] + )+ $ / ,
463+ message: t (' datasource.incorrect_email_format' ),
464+ trigger: ' blur' ,
465+ },
460466 ],
461467}
462468
@@ -739,7 +745,7 @@ const editTerm = () => {
739745 })
740746}
741747
742- const duplicateName = async () => {
748+ const duplicateName = () => {
743749 if (state .form .id ) {
744750 editTerm ()
745751 } else {
You can’t perform that action at this time.
0 commit comments