Commit 45cd5caf by luyt

fix:修复同一页面多次分享,不会记录多次问题

1 parent 98be9a68
...@@ -240,11 +240,11 @@ const WxConfig = { ...@@ -240,11 +240,11 @@ const WxConfig = {
onMenuShareAppMessage(params) { onMenuShareAppMessage(params) {
return new Promise(resolve => { return new Promise(resolve => {
wx.onMenuShareAppMessage({ wx.onMenuShareAppMessage({
...params,
success: function () { success: function () {
resolve() resolve()
// 用户点击了分享后执行的回调函数 // 用户点击了分享后执行的回调函数
} },
...params
}) })
}) })
}, },
...@@ -253,11 +253,11 @@ const WxConfig = { ...@@ -253,11 +253,11 @@ const WxConfig = {
delete params.desc delete params.desc
return new Promise(resolve => { return new Promise(resolve => {
wx.onMenuShareTimeline({ wx.onMenuShareTimeline({
...params,
success: function () { success: function () {
resolve() resolve()
// 用户点击了分享后执行的回调函数 // 用户点击了分享后执行的回调函数
} },
...params
}) })
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!