zhuddan
zhuddan
我发现选择多个文件最终只会上传最后一个文件的根本原因是 readFile 处理多个文件的时候,由于同步循环操作,导致最后setFileList 只会读取到最后一个文件。现在已经提交 [pr#2807](https://github.com/jdf2e/nutui-react/pull/2807)修改为使用一个新数组存储多个文件,处理完毕之后,最后在进行setFileList 操作。 详细代码参考, https://github.com/jdf2e/nutui-react/blob/next/src/packages/uploader/uploader.taro.tsx#L389 https://github.com/jdf2e/nutui-react/blob/next/src/packages/uploader/uploader.tsx#L290
I encountered the same issue, but I have already resolved it. I want to share my approach, hoping it can help you: The TypeORM package has two environments: the default...