Skip to content

Commit

Permalink
feat(Wechat): sharable 默认为 false
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Apr 24, 2019
1 parent fa6fbac commit 8970621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Wechat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export interface WechatConfigParams {
*
* 设置为 `true` 将把分享系列接口自动加入 `jsApiList`。
*
* @default true
* @default false
*/
sharable?: boolean,
}
Expand Down Expand Up @@ -195,7 +195,7 @@ export class Wechat {
if (typeof wx === 'undefined') {
throw new Error('请先引入微信 JSSDK')
}
const sharable = isBoolean(params.sharable) ? params.sharable : true
const sharable = isBoolean(params.sharable) ? params.sharable : false
wx.config({
...params,
jsApiList: [
Expand Down

0 comments on commit 8970621

Please sign in to comment.