恢复
This commit is contained in:
@@ -141,15 +141,11 @@ export default {
|
||||
|
||||
toSend() {
|
||||
// 文本
|
||||
let text = {}
|
||||
if(this.content.length) {
|
||||
text = {
|
||||
const text = {
|
||||
content: this.content
|
||||
}
|
||||
}
|
||||
const data = []
|
||||
// 图片
|
||||
if(this.picList.length) {
|
||||
const imgs = this.picList.map(v =>{
|
||||
return {
|
||||
msgtype: "image",
|
||||
@@ -160,9 +156,7 @@ export default {
|
||||
}
|
||||
})
|
||||
data.push(imgs)
|
||||
}
|
||||
// 视频
|
||||
if(this.videoList.length) {
|
||||
const videos = this.videoList.map(v =>{
|
||||
return {
|
||||
msgtype: "video",
|
||||
@@ -172,9 +166,7 @@ export default {
|
||||
}
|
||||
})
|
||||
data.push(videos)
|
||||
}
|
||||
// 文件
|
||||
if(this.fileList.length) {
|
||||
const files = this.fileList.map(v => {
|
||||
return {
|
||||
msgtype: "file",
|
||||
@@ -184,7 +176,7 @@ export default {
|
||||
}
|
||||
})
|
||||
data.push(files)
|
||||
}
|
||||
|
||||
// 链接
|
||||
// const links = this.webpage.map(v =>{
|
||||
// return {
|
||||
@@ -197,8 +189,9 @@ export default {
|
||||
// },
|
||||
// }
|
||||
// })
|
||||
|
||||
this.shareToExternalChat({ ...text, attachments: data }).then((res) =>{
|
||||
console.log(res, '返回的数据');
|
||||
console.log(res,'返回的数据');
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user