小程序转发参数 title 没有显示

发布于 7 年前作者 qiang033586 次浏览最后编辑 7 年前来自 ask

onShareAppMessage: (res) => {

    if (res.from === ‘button’) {

        console.log(“来自页面内转发按钮”);

        console.log(res.target);

    }else {

        console.log(“来自右上角转发菜单”)

    }

    return {

    title: ‘测试图片’,

    path: ‘/pages/share/share’,

    imageUrl: ‘’

    }

},

转发出去 没有显示tittle所描述的内容  desc 也不行  不知道为什么

2 回复
ming09
ming091 楼6 年前

确认下页面是不是有两个onShareAppMessage

yang37
yang372 楼5 年前

求指教