mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-09-05 23:47:43 +08:00
Fixed: aliyun imgUrl in list
This commit is contained in:
@@ -49,7 +49,7 @@ const aliYunUpload = async (img, type, webContents) => {
|
|||||||
if (customUrl) {
|
if (customUrl) {
|
||||||
imgList[i]['imgUrl'] = `${customUrl}/${path}${imgList[i].fileName}`
|
imgList[i]['imgUrl'] = `${customUrl}/${path}${imgList[i].fileName}`
|
||||||
} else {
|
} 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'
|
imgList[i]['type'] = 'aliyun'
|
||||||
if (i - length === -1) {
|
if (i - length === -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user