From 71df18e83c1d32db6ac654c9cc59373b462ddeea Mon Sep 17 00:00:00 2001 From: "siteng.xst" Date: Wed, 13 May 2020 10:19:29 +0800 Subject: [PATCH] fix: else if --- packages/choose-image/src/index.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/choose-image/src/index.ts b/packages/choose-image/src/index.ts index 61f42cae..e87ae8e6 100755 --- a/packages/choose-image/src/index.ts +++ b/packages/choose-image/src/index.ts @@ -15,13 +15,9 @@ if (isWeb) { chooseImage = weexModule; } else if (isMiniApp) { chooseImage = miniAppModule; -} - -if (isByteDanceMicroApp) { +} else if (isByteDanceMicroApp) { chooseImage = bytedanceModule; -} - -if (isWeChatMiniprogram) { +} else if (isWeChatMiniprogram) { chooseImage = weChatModule; }