|
@@ -106,8 +106,8 @@ export default {
|
|
|
this.isEditName = false
|
|
|
return
|
|
|
}
|
|
|
- if (this.newNickName.length > 36) {
|
|
|
- this.$showTips('用户呢称过长,请输入36个字符以内')
|
|
|
+ if (this.newNickName.length > 16) {
|
|
|
+ this.$showTips('用户呢称过长,请输入16个字符以内')
|
|
|
return
|
|
|
}
|
|
|
|
|
@@ -131,8 +131,8 @@ export default {
|
|
|
this.isEditIntroduce = false
|
|
|
return
|
|
|
}
|
|
|
- if (!/^[a-zA-Z_0-9]{5,36}$/i.test(this.newUserName)) {
|
|
|
- this.$showTips('只能是5-20位的数字,字母下,划线')
|
|
|
+ if (!/^[a-zA-Z_0-9]{2,16}$/i.test(this.newUserName)) {
|
|
|
+ this.$showTips('只能是2-16位的数字,字母下,划线')
|
|
|
return
|
|
|
}
|
|
|
|