const _onItemClick = useCallback(({ urls }) => {
if (!urls || urls.length === 0) return
Taro.previewMedia({
sources: urls.map(({ url, type }) => {
// 1: image; 2: video.
const isImage = type === 1
const poster = isImage ? url : sm_parseUrl(url).params.coverImg
return {
url,
type: isImage ? 'image' : 'video',
poster,
}
}),
current: 0,
})
}, [])

你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的原生代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)