From 2db5b6dc6effb209e43125230888e8fd70ff2cc6 Mon Sep 17 00:00:00 2001 From: luckyadam Date: Wed, 15 Jul 2020 16:04:05 +0800 Subject: [PATCH] =?UTF-8?q?chore(runtime):=20=E8=B0=83=E6=95=B4=20lint=20?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-runtime/src/dsl/common.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/taro-runtime/src/dsl/common.ts b/packages/taro-runtime/src/dsl/common.ts index f1a15f73780b..c0249a91f64e 100644 --- a/packages/taro-runtime/src/dsl/common.ts +++ b/packages/taro-runtime/src/dsl/common.ts @@ -214,9 +214,9 @@ export function createPageConfig (component: any, pageName?: string, data?: Reco } // onShareAppMessage 和 onShareTimeline 一样,会影响小程序右上方按钮的选项,因此不能默认注册。 - if (component.onShareAppMessage - || component.prototype.onShareAppMessage - || component.enableShareAppMessage) { + if (component.onShareAppMessage || + component.prototype.onShareAppMessage || + component.enableShareAppMessage) { config.onShareAppMessage = function (options) { const target = options.target if (target != null) { @@ -230,9 +230,9 @@ export function createPageConfig (component: any, pageName?: string, data?: Reco return safeExecute(path, 'onShareAppMessage', options) } } - if (component.onShareTimeline - || component.prototype.onShareTimeline - || component.enableShareTimeline) { + if (component.onShareTimeline || + component.prototype.onShareTimeline || + component.enableShareTimeline) { config.onShareTimeline = function () { const path = getPath(id, this.options) return safeExecute(path, 'onShareTimeline')