This commit is contained in:
shijingjing
2022-09-20 09:41:52 +08:00
parent 0e6ec0a31d
commit 984e3f0a83

View File

@@ -183,15 +183,16 @@ export default {
})
data = [ ...imgs, ...videos, ...files, ...links, ...miniapps ]
this.shareToExternalChat({ text: text, attachments: data }).then((res) =>{
console.log(res)
// if (res.err_msg == "shareToExternalChat:ok") {
// this.status = 'ok'
// this.nextCallback()
// } else {
// this.status = 'fail'
// this.nextCallback()
// }
})
if(res.err_msg == "shareToExternalChat:ok") {
this.status = 'ok'
this.nextCallback()
} else if(res.err_msg == "shareToExternalChat:fail_empty parameters") {
console.log('取消发送')
} else {
this.status = 'fail'
this.nextCallback()
}
}).catch(()=>{})
},
nextCallback() {
this.$http.post(`/app/appmasssendingtask/h5Callback`, null, {