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