刘洋 vor 1 Jahr
Ursprung
Commit
0121541889
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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);