未提交图片改为多条

main
ddlucky 7 months ago
parent 26a81f2962
commit 5d04184e2c

@ -126,12 +126,13 @@ Page({
// that.setData({ // that.setData({
// upFiles: files // upFiles: files
// }) // })
var files = []; var files = that.data.upFiles;
res.tempFiles.forEach((x)=>{ res.tempFiles.forEach((x)=>{
var IMG=x.tempFilePath; var IMG=x.tempFilePath;
files.push(IMG); files.push(IMG);
}) })
that.setData({ that.setData({
upFiles: files upFiles: files
}) })

Loading…
Cancel
Save