n1073645 5 年之前
父节点
当前提交
bf70589b3c
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/core/dishTypes/DishListFile.mjs

+ 2 - 1
src/core/dishTypes/DishListFile.mjs

@@ -22,8 +22,9 @@ class DishListFile extends DishType {
 
         if (isNodeEnvironment()) {
             this.value = this.value.map(file => Uint8Array.from(file.data));
+        } else {
+            this.value = await DishListFile.concatenateTypedArraysWithTypedElements(...this.value);
         }
-        this.value = (this.type === Dish.LIST_FILE ? await DishListFile.concatenateTypedArraysWithTypedElements(...this.value) : await DishListFile.concatenateTypedArrays(...this.value)).buffer;
     }
 
     /**