微信小程序自定义组件中按钮绑定分享,分享结果回调方法无效? 代码片段 onShareAppMessage: function () { return { title: ‘postDetail.info.postTitle’, path: ‘/pages/index/index’, success: function (res) { // 转发成功 wx.showToast({ title: “分享成功”, duration: 1000, icon: “success” }) }, fail: function (res) { wx.showToast({ title: “分享失败”, duration: 1000, icon: “success” }) } } },