做服装要看国外哪些网站免费推广软件工具
当使用button标签带上open-type="share"属性,点击之后可分享当前页面给微信好友,但是分享之后朋友点开跳转到了首页问题。
需要使用 onShareAppMessage 函数
export default {onShareAppMessage(res) {if (res.from === 'button') {// 来自页面内分享按钮console.log(res.target)}return {title: '自定义分享标题',path: '/pages/test/test?id=123'}}
}