huangxw пре 5 месеци
родитељ
комит
f2b84aa1f2
1 измењених фајлова са 1 додато и 1 уклоњено
  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';