onShareAppMessage 好友转发,自己打开有内容,别人打开是空的,具体怎么解决?onShareAppMessage is forwarded by friends, and there is content when I open it by myself, but it is empty when others open it. How to solve it?
onShareAppMessage 好友转发,自己打开有内容,别人打开是空的,具体怎么解决?
onShareAppMessage(res) { console.log("分享好友", res) const promise = new Promise(resolve => { setTimeout(() => { resolve({ title: this.data.list.categotyList, }) }, 2000) }) return { title: this.data.list.categotyList, path: '/pages/index/pinglun/pinglun?id=' +this.data.list, promise } },list是详情数组,

请指点一下,我这边有什么错误吗?
Onshareaappmessage (RES) {/ / listen to the user's behavior of clicking the forward button in the page (button component: open type = "share") or the "forward" button in the menu at the upper right corner, and customize the forwarding content: console.log ("share friends", RES) const {promise = new} promise (resolve = > {setTimeout (() = > {resolve( {Title: this. Data. List. Categotylist, / / 'custom forwarding title',})}, 2000)}) return {Title: this. Data. List. Categotylist, / / 'custom forwarding title', path: '/ pages / index / Pinglun / Pinglun? Id =' + this. Data. List, / / imageurl: this. Data. List. Img1, promise}}. The list is an array of details. Please point out, Is there anything wrong with me?
感觉写法就有问题