forms/imagePicker/CImagePreview.vue
@@ -25,6 +25,7 @@ return {}; }, methods: { // option { current, urls } $preview(option) { // 网页模式下,增加缩放操作 if (process.env.TARO_ENV === 'h5') { @@ -39,8 +40,8 @@ // 小程序模式,直接支持缩放 else { Taro.previewImage({ current: file.url, // 当前显示图片的http链接 urls, // 需要预览的图片http链接列表 current: option.current, // 当前显示图片的http链接 urls: option.urls, // 需要预览的图片http链接列表 }); } },