Showing
1 changed file
with
6 additions
and
7 deletions
| ... | ... | @@ -43,11 +43,11 @@ |
| 43 | 43 | }, |
| 44 | 44 | { |
| 45 | 45 | field: 'username', |
| 46 | - label: '账号', | |
| 46 | + label: '用户名', | |
| 47 | 47 | component: 'Input', |
| 48 | 48 | componentProps: { |
| 49 | 49 | maxLength: 64, |
| 50 | - placeholder: '请输入账号', | |
| 50 | + placeholder: '请输入用户名', | |
| 51 | 51 | }, |
| 52 | 52 | dynamicRules: ({ values }) => { |
| 53 | 53 | try { |
| ... | ... | @@ -62,14 +62,13 @@ |
| 62 | 62 | validator(_, value) { |
| 63 | 63 | return new Promise((resolve, reject) => { |
| 64 | 64 | if (value == '' || value === undefined) { |
| 65 | - reject('请输入账号'); | |
| 65 | + reject('请输入用户名'); | |
| 66 | 66 | } else if (ChineseRegexp.test(value)) { |
| 67 | - reject('账号不能含有中文'); | |
| 67 | + reject('用户名不能含有中文'); | |
| 68 | 68 | } else if (EmailRegexp.test(value)) { |
| 69 | - reject('账号不能为电子邮箱格式'); | |
| 69 | + reject('用户名不能为电子邮箱格式'); | |
| 70 | 70 | } else if (findUserName && value == findUserName?.username) { |
| 71 | - console.log(1111111111); | |
| 72 | - reject('账号已存在'); | |
| 71 | + reject('用户名已存在'); | |
| 73 | 72 | return; |
| 74 | 73 | } else { |
| 75 | 74 | resolve(); | ... | ... |