review code.

This commit is contained in:
lijiahang
2023-10-26 17:12:17 +08:00
parent 6c4e588f92
commit 18de1a2a3a
18 changed files with 81 additions and 51 deletions

View File

@@ -7,8 +7,8 @@ export const username = [{
maxLength: 32,
message: '用户名长度不能大于32位'
}, {
match: /^[a-zA-Z0-9]{4,32}$/,
message: '用户名需要为 4-32 位的数字以及字母'
match: /^[a-zA-Z0-9_]{4,32}$/,
message: '用户名需要为 4-32 位的数字,字母或下滑线'
}] as FieldRule[];
export const password = [{