瀏覽代碼

增加相册选择

wuhb 1 月之前
父節點
當前提交
4ef3f331f9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/upload-image/upload-image.uvue

+ 1 - 1
components/upload-image/upload-image.uvue

@@ -159,7 +159,7 @@
         uni.chooseImage({
             count: props.maxCount - imageList.value.length,
             sizeType: ['compressed'],
-            sourceType: ['camera'],
+            sourceType: ['album','camera'],
             success: (res) => {
                 const tempFilePaths = res.tempFilePaths as string[]
                 handleUpload(tempFilePaths)