Skip to content

Commit

Permalink
✨ 修复了 QQ 小程序的分享问题
Browse files Browse the repository at this point in the history
  • Loading branch information
idealclover committed Feb 18, 2020
1 parent 2d92eac commit de50d1f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions UniTypecho/pages/index/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,14 @@
getApp().globalData.showShare = showShare;
}
});
},
// #ifdef MP-QQ
onShareAppMessage: function () {
qq.showShareMenu({
showShareItems: ['qq', 'qzone', 'wechatFriends', 'wechatMoment']
})
}
// #endif
}
</script>

Expand Down
5 changes: 5 additions & 0 deletions UniTypecho/pages/post/post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@
onRefreshComments() {
this.refreshComments = !this.refreshComments;
}
},
onShareAppMessage: function () {
qq.showShareMenu({
showShareItems: ['qq', 'qzone', 'wechatFriends', 'wechatMoment']
})
}
}
</script>
Expand Down

0 comments on commit de50d1f

Please sign in to comment.