Skip to content

Commit

Permalink
Merge pull request #16558 from heweishui/main
Browse files Browse the repository at this point in the history
【harmony-hybrid】替换chooseImage和chooseVideo的实现
  • Loading branch information
qican777 authored Sep 19, 2024
2 parents 1ed101a + 4fb85f8 commit 5f249fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const chooseImage: typeof Taro.chooseImage = async (options) => {
}

return new Promise<Taro.chooseImage.SuccessCallbackResult>((resolve, reject) => {
native.chooseMediaAssets({
native.chooseMediumAssets({
count: count,
mediaType: mediaType,
sourceType: sourceSelected,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export const chooseVideo: typeof Taro.chooseVideo = async (options) => {

return new Promise<Taro.chooseVideo.SuccessCallbackResult>((resolve, reject) => {
// @ts-ignore
native.chooseMediaAssets({
native.chooseMediumAssets({
count: 1,
sizeType: sizeType,
mediaType: mediaType,
Expand Down

0 comments on commit 5f249fd

Please sign in to comment.