Updated: electron version & fixed smms pic type

This commit is contained in:
Molunerfinn
2018-08-08 11:21:08 +08:00
parent 4ab782e8dc
commit d4c04ee1e6
5 changed files with 27 additions and 6 deletions

View File

@@ -34,6 +34,7 @@ const smmsUpload = async function (img, type, webContents) {
if (body.code === 'success') {
delete imgList[i].base64Image
imgList[i]['imgUrl'] = body.data.url
imgList[i]['type'] = 'smms'
} else {
webContents.send('uploadProgress', -1)
return new Error()