bug
This commit is contained in:
@@ -144,7 +144,7 @@ export default {
|
||||
const text = {
|
||||
content: this.content
|
||||
}
|
||||
const attachments = []
|
||||
const data = []
|
||||
// 图片
|
||||
const imgs = this.picList.map(v =>{
|
||||
return {
|
||||
@@ -155,7 +155,7 @@ export default {
|
||||
},
|
||||
}
|
||||
})
|
||||
attachments.push(imgs)
|
||||
data.push(imgs)
|
||||
// 视频
|
||||
const videos = this.videoList.map(v =>{
|
||||
return {
|
||||
@@ -165,7 +165,7 @@ export default {
|
||||
},
|
||||
}
|
||||
})
|
||||
attachments.push(videos)
|
||||
data.push(videos)
|
||||
// 文件
|
||||
const files = this.fileList.map(v => {
|
||||
return {
|
||||
@@ -175,7 +175,7 @@ export default {
|
||||
},
|
||||
}
|
||||
})
|
||||
attachments.push(files)
|
||||
data.push(files)
|
||||
|
||||
// 链接
|
||||
// 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,'返回的数据');
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user