刘洋 il y a 1 an
Parent
commit
0121541889
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/views/sop/components/dynamic-form-item/UPLOAD_IMAGE.vue

+ 1 - 1
src/views/sop/components/dynamic-form-item/UPLOAD_IMAGE.vue

@@ -113,7 +113,7 @@ const handleChange = () => {
 };
 
 onMounted(() => {
-  files.value = props.config.value || [];
+  files.value = (props.config.value || []).filter(Boolean);
 });
 const downloadAll = () => {
   console.log('sop', props.sop);