fix: 用户昵称和手机号正则校验限长度
This commit is contained in:
@@ -1400,7 +1400,7 @@ export default {
|
||||
status: 'Status',
|
||||
userNameTip:'The account cannot start with a number and can contain uppercase and lowercase letters, numbers, and no less than 5 digits',
|
||||
passwdTip:'The password should contain at least uppercase and lowercase letters, numbers, special symbols, and no less than 6 digits',
|
||||
nickNameTip:'Nicknames can only contain letters, numbers, Chinese characters, and underscores, with no less than 2 digits',
|
||||
nickNameTip:'Nicknames no less than 2 digits',
|
||||
emailTip:'Please enter the correct email address',
|
||||
phoneTip:'Please enter the correct phone number',
|
||||
resetPwd:'Reset Password',
|
||||
|
||||
@@ -265,7 +265,7 @@ export default {
|
||||
phonenumberPleace: "请输入正确的电子邮箱",
|
||||
nick: "用户昵称",
|
||||
nickPleace: "请输入用户昵称",
|
||||
nickTip: "昵称只能包含字母、数字、中文和下划线,且不少于2位",
|
||||
nickTip: "昵称少于2位",
|
||||
profileTip: "确认要提交修改用户基本信息吗?",
|
||||
profileOk: "用户基本信息修改成功!",
|
||||
know: "我知道了",
|
||||
@@ -1400,7 +1400,7 @@ export default {
|
||||
status: '用户状态',
|
||||
userNameTip:'账号不能以数字开头,可包含大写小写字母,数字,且不少于5位',
|
||||
passwdTip:'密码至少包含大小写字母、数字、特殊符号,且不少于6位',
|
||||
nickNameTip:'昵称只能包含字母、数字、中文和下划线,且不少于2位',
|
||||
nickNameTip:'昵称不少于2位',
|
||||
emailTip:'请输入正确的邮箱地址',
|
||||
phoneTip:'请输入正确的手机号码',
|
||||
resetPwd:'重置密码',
|
||||
|
||||
@@ -34,7 +34,7 @@ export const regExpPasswd =
|
||||
/**
|
||||
* 有效手机号格式
|
||||
*/
|
||||
export const regExpMobile = /^1[3|4|5|6|7|8|9][0-9]\d{8}$/;
|
||||
export const regExpMobile = /^.{3,}$/; // /^1[3|4|5|6|7|8|9][0-9]\d{8}$/;
|
||||
|
||||
/**
|
||||
* 有效邮箱格式
|
||||
@@ -47,7 +47,7 @@ export const regExpEmail =
|
||||
*
|
||||
* 用户昵称只能包含字母、数字、中文和下划线,且不少于2位
|
||||
*/
|
||||
export const regExpNick = /^[\w\u4e00-\u9fa5-]{2,}$/;
|
||||
export const regExpNick = /^.{2,}$/; // /^[\w\u4e00-\u9fa5-]{2,}$/;
|
||||
|
||||
/**
|
||||
* 是否为http(s)://开头
|
||||
|
||||
@@ -1363,7 +1363,7 @@ onMounted(() => {
|
||||
<a-input
|
||||
v-model:value="modalState.from.phonenumber"
|
||||
allow-clear
|
||||
:maxlength="11"
|
||||
:maxlength="16"
|
||||
></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
Reference in New Issue
Block a user