提交 9355c892 作者: 王进

调整callback位置

上级 72e14eec
......@@ -615,6 +615,7 @@ class WechatSDK {
// 分享
public addShareEvent(shareInfo: shareInfo, callback?) {
const that = this;
if(callback) callback();
const ShareParams = {
title: shareInfo.title ? shareInfo.title : SDKConfig.shareTitle,
imageUrl: shareInfo.image ? shareInfo.image : SDKConfig.shareImageUrl,
......@@ -628,7 +629,6 @@ class WechatSDK {
return ShareParams
})
that.shareInit()
if(callback) callback();
}
public ShareApp(params?: string) {
const that = this
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论