uni-app 微信分享 onShareAppMessage 方法 return 的对象不生效 但使用百度原生 onShareAppMessage 是可以设置的
uni-app 微信分享 onShareAppMessage 方法 return 的对象不生效 但使用百度原生 onShareAppMessage 是可以设置的
示例代码:
onShareAppMessage(res) {
if (res.from === 'button') { // 来自页面内分享按钮
console.log(res.target)
}
return {
title: '自定义分享标题',
path: '/pages/test/test?id=123'
}
},
操作步骤:
更多关于uni-app 微信分享 onShareAppMessage 方法 return 的对象不生效 但使用百度原生 onShareAppMessage 是可以设置的的实战教程也可以访问 https://www.itying.com/category-93-b0.html
4 回复
问题已确认,目前百度小程存在部分限制,已经联系百度小程序技术人员,近期百度小程序将会发版支持。
https://smartprogram.baidu.com/forum/topic/show/152602
更多关于uni-app 微信分享 onShareAppMessage 方法 return 的对象不生效 但使用百度原生 onShareAppMessage 是可以设置的的实战教程也可以访问 https://www.itying.com/category-93-b0.html
查看相关问题帖子:https://ask.dcloud.net.cn/question/125914
感谢您的反馈!
请问近期有进展吗?大概多久可以解决这个问题呢?或者目前有啥替代方案吗


