未验证 提交 57c8780e 编写于 作者: haiwei.lian's avatar haiwei.lian 提交者: GitHub

fix(uploader): 修复多张图片同时上传时图片类型判断错误 (#872)

上级 66f362e0
......@@ -240,7 +240,7 @@ export default create({
};
const readFile = (files: Taro.chooseImage.ImageFile[]) => {
const imgReg = /\.(png|jpeg|jpg|webp|gif)$/gi;
const imgReg = /\.(png|jpeg|jpg|webp|gif)$/i;
files.forEach((file: Taro.chooseImage.ImageFile, index: number) => {
let fileType = file.type;
const fileItem = reactive(new FileItem());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册