云开发wx.cloud.uploadFile异步返回图片顺序错乱,怎样解决图片顺序?
发布于 6 年前 作者 wangjing 1815 次浏览 来自 问答
wx.cloud.uploadFile({
          cloudPath: rand,
          filePath: filePath,
        }).then(res => {
          this.setData({
            fileIDs: this.data.fileIDs.concat(res.fileID)
          })
        }).catch(error => {
          console.error(error)
          wx.showToast({
            icon: 'none',
            title: '网络不给力....'
          })
        })

经过wx.cloud.uploadFile返回的res.fileID顺序一定是乱的,怎么能拿到选择图片的顺序,哪位大神给指点指点


1 回复
回到顶部