mirror of https://github.com/halo-dev/halo-admin
Merge branch 'main' into refactor/user-profile-page
commit
287f1000c3
|
@ -173,7 +173,17 @@ const handleCreateUser = async () => {
|
||||||
label="用户名"
|
label="用户名"
|
||||||
type="text"
|
type="text"
|
||||||
name="name"
|
name="name"
|
||||||
validation="required|alphanumeric|length:0,50"
|
:validation="[
|
||||||
|
['required'],
|
||||||
|
['length:0,63'],
|
||||||
|
[
|
||||||
|
'matches',
|
||||||
|
/^[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/,
|
||||||
|
],
|
||||||
|
]"
|
||||||
|
:validation-messages="{
|
||||||
|
matches: '请输入有效的用户名',
|
||||||
|
}"
|
||||||
></FormKit>
|
></FormKit>
|
||||||
<FormKit
|
<FormKit
|
||||||
id="displayNameInput"
|
id="displayNameInput"
|
||||||
|
|
Loading…
Reference in New Issue