Fixed: aliyun imgUrl in list

This commit is contained in:
Molunerfinn 2018-09-26 23:11:21 +08:00
parent 17755b9809
commit 804072999e

View File

@ -49,7 +49,7 @@ const aliYunUpload = async (img, type, webContents) => {
if (customUrl) {
imgList[i]['imgUrl'] = `${customUrl}/${path}${imgList[i].fileName}`
} else {
imgList[i]['imgUrl'] = `https://${aliYunOptions.bucket}.${aliYunOptions.area}.aliyuncs.com/${path}${imgList[0].fileName}`
imgList[i]['imgUrl'] = `https://${aliYunOptions.bucket}.${aliYunOptions.area}.aliyuncs.com/${path}${imgList[i].fileName}`
}
imgList[i]['type'] = 'aliyun'
if (i - length === -1) {