fix: username length validation in user creation form is not working (#6806)

#### What type of PR is this?

/area ui
/kind bug
/milestone 2.20.x

#### What this PR does / why we need it:

修复创建用户表单的用户名长度校验不生效的问题。

#### Does this PR introduce a user-facing change?

```release-note
修复创建用户表单的用户名长度校验不生效的问题。
```
pull/6807/head
Ryan Wang 2024-10-10 11:05:00 +08:00 committed by GitHub
parent 158c3e8a9e
commit 9cbd9b23d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ const handleCreateUser = async () => {
name="name"
:validation="[
['required'],
['length:0,63'],
['length', 0, 63],
[
'matches',
/^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/,