// 点击按钮下载图片
async download() {
try {
uni.showLoading({
title: 'downloading...' })
// 下载远程文件到小程序
const res1 = await uni.downloadFile({
url: this.list[this.index].img
})
// 保存文件到本地
const res2 = u
uni-app下载图片
最新推荐文章于 2024-05-25 11:46:51 发布