This commit is contained in:
shijingjing
2022-09-15 13:56:15 +08:00
parent 29173ecf4e
commit 3ea39d2a12

View File

@@ -144,7 +144,7 @@ export default {
const text = { const text = {
content: this.content content: this.content
} }
const attachments = [] const data = []
// 图片 // 图片
const imgs = this.picList.map(v =>{ const imgs = this.picList.map(v =>{
return { return {
@@ -155,7 +155,7 @@ export default {
}, },
} }
}) })
attachments.push(imgs) data.push(imgs)
// 视频 // 视频
const videos = this.videoList.map(v =>{ const videos = this.videoList.map(v =>{
return { return {
@@ -165,7 +165,7 @@ export default {
}, },
} }
}) })
attachments.push(videos) data.push(videos)
// 文件 // 文件
const files = this.fileList.map(v => { const files = this.fileList.map(v => {
return { return {
@@ -175,7 +175,7 @@ export default {
}, },
} }
}) })
attachments.push(files) data.push(files)
// 链接 // 链接
// const links = this.webpage.map(v =>{ // const links = this.webpage.map(v =>{
@@ -192,7 +192,7 @@ export default {
this.shareToExternalChat({ ...text, ...attachments }).then((res) =>{ this.shareToExternalChat({ ...text, attachments: data }).then((res) =>{
console.log(res,'返回的数据'); console.log(res,'返回的数据');
}) })
}, },