huangxw il y a 5 mois
Parent
commit
f2b84aa1f2
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/components/FileUpload/index.vue

+ 1 - 1
src/components/FileUpload/index.vue

@@ -95,7 +95,7 @@ watch(
             // 首先将值转为数组
             let list = [];
             if (props.format === 'array' || Array.isArray(val)) {
-                formatValue.value = 'object';
+                formatValue.value = 'array';
                 list = val;
             } else if (props.format === 'object' || typeof val === 'object') {
                 formatValue.value = 'object';