uniapp做图片预览

  
    
const previewImage = (e: any) => {
  uni.previewImage({
    urls: list.value,
    current: list.value[e],
  })
}

const list = ref([
  `${config.resBaseUrl}/hjq/74a2db506304fd0aa69dc0975791ebd.png`,
  `${config.resBaseUrl}/hjq/a0e1e70b40b9d7b6e4aaf3483b3f092.png`,
  `${config.resBaseUrl}/hjq/1db48518ac3cdb5806cee4457e445d6.png`,
])

你可能感兴趣的:(uniapp,vue3,uni-app,windows,linux)