mirror of https://github.com/halo-dev/halo-admin
perf: refine validation config of user editing form
Signed-off-by: Ryan Wang <i@ryanc.cc>pull/628/head
parent
668c678714
commit
05a6c1cec9
|
@ -186,7 +186,7 @@ const handleRawModeChange = () => {
|
||||||
label="电子邮箱"
|
label="电子邮箱"
|
||||||
type="email"
|
type="email"
|
||||||
name="email"
|
name="email"
|
||||||
validation="required"
|
validation="required|email"
|
||||||
></FormKit>
|
></FormKit>
|
||||||
<FormKit
|
<FormKit
|
||||||
v-model="formState.spec.phone"
|
v-model="formState.spec.phone"
|
||||||
|
@ -199,6 +199,7 @@ const handleRawModeChange = () => {
|
||||||
label="头像"
|
label="头像"
|
||||||
type="text"
|
type="text"
|
||||||
name="avatar"
|
name="avatar"
|
||||||
|
validation="url"
|
||||||
></FormKit>
|
></FormKit>
|
||||||
<FormKit
|
<FormKit
|
||||||
v-model="formState.spec.bio"
|
v-model="formState.spec.bio"
|
||||||
|
|
Loading…
Reference in New Issue