This commit is contained in:
@@ -225,9 +225,8 @@
|
||||
<a-form-item
|
||||
label="微信号"
|
||||
name="wechatId"
|
||||
:required="[2, 3].includes(Number(formState.type))"
|
||||
>
|
||||
<a-input v-model:value="formState.wechatId" placeholder="店长和美甲师必填" />
|
||||
<a-input v-model:value="formState.wechatId" placeholder="选填" />
|
||||
</a-form-item>
|
||||
<a-form-item label="微信二维码" name="wechatQrCode">
|
||||
<div class="wechat-qr-field">
|
||||
@@ -776,15 +775,7 @@ const formRules = {
|
||||
trigger: 'blur'
|
||||
}
|
||||
],
|
||||
wechatId: [{
|
||||
validator: async (_rule: unknown, value: string) => {
|
||||
if ([2, 3].includes(Number(formState.type)) && !value?.trim()) {
|
||||
return Promise.reject('店长和美甲师必须填写微信号')
|
||||
}
|
||||
return Promise.resolve()
|
||||
},
|
||||
trigger: ['blur', 'change']
|
||||
}],
|
||||
wechatId: [],
|
||||
password: [{
|
||||
validator: async (_rule: unknown, value: string) => {
|
||||
validateOptionalPasswordStrength(value)
|
||||
|
||||
Reference in New Issue
Block a user