删除部分错误提水

This commit is contained in:
余菲 2022-11-01 14:29:40 +08:00
parent de3765ca4b
commit f61a83731f
1 changed files with 3 additions and 7 deletions

View File

@ -207,15 +207,15 @@ Page({
'x-oss-security-token': ossForm.SecurityToken 'x-oss-security-token': ossForm.SecurityToken
}, },
success: (res)=> { success: (res)=> {
console.log(res, '=+++++++++=');
if(res.statusCode === 204) { if(res.statusCode === 204) {
// 上传成功将图片路径resolve出去 // 上传成功将图片路径resolve出去
resolve(key) resolve(key)
} }
}, },
fail: (e)=> { fail: (e)=> {
console.log(e, '+++++++++++++++++++++++++'); wx.showToast({
reject('图片上传失败') title: '图片上传失败',
})
} }
}) })
}) })
@ -241,10 +241,6 @@ Page({
}).catch((e)=> { }).catch((e)=> {
wx.hideLoading() wx.hideLoading()
console.log(e, 'promise.all失败');
wx.showToast({
title: '图片上传失败',
})
}) })
} }
} }