操作路径:1、分享到企微,
2、企微打开之后再分享到微信朋友圈。
3、发现bug自定义内容都不生效。
尝试解决:1) 升级jssdk
<!-- <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.0.0.js" charset="utf-8"></script> -->
<!-- <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.4.0.js" charset="utf-8"></script> -->
<script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.6.0.js" charset="utf-8"></script>
2) 使用推介的api
export const setMenuShareAppMessage = ({title, desc, link, imgUrl}) => {
wx.ready(() => {
// 分享朋友圈
// wx.onMenuShareTimeline({title, desc, link, imgUrl});
// wx.onMenuShareAppMessage({title, desc, link, imgUrl});
wx.updateTimelineShareData({title, desc, link, imgUrl});
wx.updateAppMessageShareData({title, desc, link, imgUrl});
});
};
结果:依然没生效
求助大佬