Skip to content

Commit

Permalink
fix: 替换chooseImage和chooseVideo的实现
Browse files Browse the repository at this point in the history
  • Loading branch information
heweishui committed Sep 19, 2024
1 parent 1ed101a commit 4fb85f8
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 4fb85f8

Please sign in to comment.