Commit 7ad161ff9f16e6a181082a7f942bae0ec5f13681
1 parent
e77cb442
fix:DEFECT-395 修复平台定制联系我们有数据时,在上传图片下方提示
Showing
1 changed file
with
2 additions
and
1 deletions
... | ... | @@ -63,7 +63,7 @@ |
63 | 63 | loading: false, |
64 | 64 | tip: '拼命加载中...', |
65 | 65 | }); |
66 | - const [registerForm, { getFieldsValue, setFieldsValue, validate }] = useForm({ | |
66 | + const [registerForm, { getFieldsValue, setFieldsValue, validate, clearValidate }] = useForm({ | |
67 | 67 | labelWidth: 80, |
68 | 68 | schemas, |
69 | 69 | showResetButton: false, |
... | ... | @@ -91,6 +91,7 @@ |
91 | 91 | |
92 | 92 | const qrcodePic = ref(); |
93 | 93 | const customUploadqrcodePic = async ({ file }) => { |
94 | + clearValidate('qrcode'); | |
94 | 95 | if (beforeUploadqrcodePic(file)) { |
95 | 96 | const formData = new FormData(); |
96 | 97 | formData.append('file', file); | ... | ... |