mirror of
https://gitee.com/wonderful-code/buildadmin
synced 2024-11-22 23:28:43 +00:00
refactor:优化账户名验证错误时的提示消息
This commit is contained in:
parent
1751bc0609
commit
3625aa5ece
@ -1,7 +1,7 @@
|
||||
export default {
|
||||
'Please enter the correct mobile number': 'Please enter the correct mobile number',
|
||||
'Please enter the correct account': 'Please enter the correct account',
|
||||
'Please enter the correct password': 'The password requires 6 to 32 bits and cannot contain & < > " \'',
|
||||
'Please enter the correct account': 'The account requires 3 to 15 characters and contains a-z A-Z 0-9 _',
|
||||
'Please enter the correct password': 'The password requires 6 to 32 characters and cannot contains & < > " \'',
|
||||
'Please enter the correct name': 'Please enter the correct name',
|
||||
'Content cannot be empty': 'The content cannot be blank',
|
||||
'Floating point number': ' Floating number',
|
||||
|
@ -1,6 +1,6 @@
|
||||
export default {
|
||||
'Please enter the correct mobile number': '请输入正确的手机号',
|
||||
'Please enter the correct account': '请输入正确的账户',
|
||||
'Please enter the correct account': '要求3到15位,字母开头且只含字母、数字、下划线',
|
||||
'Please enter the correct password': '密码要求6到32位,不能包含 & < > " \'',
|
||||
'Please enter the correct name': '请输入正确的名称',
|
||||
'Content cannot be empty': '内容不能为空',
|
||||
|
@ -118,10 +118,7 @@ const baTable = inject('baTable') as baTableClass
|
||||
const { t } = useI18n()
|
||||
|
||||
const rules: Partial<Record<string, FormItemRule[]>> = reactive({
|
||||
username: [
|
||||
buildValidatorData({ name: 'required', title: t('auth.admin.username') }),
|
||||
buildValidatorData({ name: 'account', message: t('Please enter the correct field', { field: t('auth.admin.username') }) }),
|
||||
],
|
||||
username: [buildValidatorData({ name: 'required', title: t('auth.admin.username') }), buildValidatorData({ name: 'account' })],
|
||||
nickname: [buildValidatorData({ name: 'required', title: t('auth.admin.nickname') })],
|
||||
group_arr: [buildValidatorData({ name: 'required', message: t('Please select field', { field: t('auth.admin.grouping') }) })],
|
||||
email: [buildValidatorData({ name: 'email', message: t('Please enter the correct field', { field: t('auth.admin.mailbox') }) })],
|
||||
|
Loading…
Reference in New Issue
Block a user