mirror of https://github.com/halo-dev/halo-admin
perf: username length
parent
22e79fa662
commit
66917785b6
|
@ -175,7 +175,7 @@ const handleCreateUser = async () => {
|
||||||
name="name"
|
name="name"
|
||||||
:validation="[
|
:validation="[
|
||||||
['required'],
|
['required'],
|
||||||
['length:0,50'],
|
['length:0,63'],
|
||||||
[
|
[
|
||||||
'matches',
|
'matches',
|
||||||
/^[a-z0-9]([-a-z0-9]*[a-z0-9])?(.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/,
|
/^[a-z0-9]([-a-z0-9]*[a-z0-9])?(.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*$/,
|
||||||
|
|
Loading…
Reference in New Issue