From 4fb85f88a0d92ec6d2b9eba815e2791fa86a6553 Mon Sep 17 00:00:00 2001 From: heweishui Date: Thu, 19 Sep 2024 14:36:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=BF=E6=8D=A2chooseImage=E5=92=8Cch?= =?UTF-8?q?ooseVideo=E7=9A=84=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/apis/media/image/chooseImage.ts | 2 +- .../src/api/apis/media/video/chooseVideo.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/taro-platform-harmony-hybrid/src/api/apis/media/image/chooseImage.ts b/packages/taro-platform-harmony-hybrid/src/api/apis/media/image/chooseImage.ts index d4b5140afb12..1f2bbf35c852 100644 --- a/packages/taro-platform-harmony-hybrid/src/api/apis/media/image/chooseImage.ts +++ b/packages/taro-platform-harmony-hybrid/src/api/apis/media/image/chooseImage.ts @@ -57,7 +57,7 @@ export const chooseImage: typeof Taro.chooseImage = async (options) => { } return new Promise((resolve, reject) => { - native.chooseMediaAssets({ + native.chooseMediumAssets({ count: count, mediaType: mediaType, sourceType: sourceSelected, diff --git a/packages/taro-platform-harmony-hybrid/src/api/apis/media/video/chooseVideo.ts b/packages/taro-platform-harmony-hybrid/src/api/apis/media/video/chooseVideo.ts index 854ec58b64a9..289aa5659df2 100644 --- a/packages/taro-platform-harmony-hybrid/src/api/apis/media/video/chooseVideo.ts +++ b/packages/taro-platform-harmony-hybrid/src/api/apis/media/video/chooseVideo.ts @@ -65,7 +65,7 @@ export const chooseVideo: typeof Taro.chooseVideo = async (options) => { return new Promise((resolve, reject) => { // @ts-ignore - native.chooseMediaAssets({ + native.chooseMediumAssets({ count: 1, sizeType: sizeType, mediaType: mediaType,