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';