From 381ae86644a5392666f11d51c54ce84cf74fc668 Mon Sep 17 00:00:00 2001 From: "qianxin.yy" Date: Mon, 27 Apr 2020 11:19:06 +0800 Subject: [PATCH] fix: name --- packages/choose-image/src/quickapp/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/choose-image/src/quickapp/index.js b/packages/choose-image/src/quickapp/index.js index 3bf47d68..504f202f 100644 --- a/packages/choose-image/src/quickapp/index.js +++ b/packages/choose-image/src/quickapp/index.js @@ -3,7 +3,7 @@ import otherModule from '../index'; let exportModule; -function quickModule (options) { +function chooseImage (options) { if ( options.sourceType && options.sourceType.indexOf('camera') > -1 ) { return new Promise(function(resolve, reject) { // eslint-disable-next-line @typescript-eslint/no-var-requires @@ -54,7 +54,7 @@ function quickModule (options) { } if (isQuickApp) { - exportModule = quickModule; + exportModule = chooseImage; } else { exportModule = otherModule; }