下载图片

parent 31c65da5
...@@ -212,13 +212,13 @@ function saveImage(url) { ...@@ -212,13 +212,13 @@ function saveImage(url) {
// 移除下载链接 // 移除下载链接
document.body.removeChild(link); document.body.removeChild(link);
URL.revokeObjectURL(objectUrl); URL.revokeObjectURL(objectUrl);
uni.showoast({ uni.showToast({
title: '下载成功', title: '下载成功',
icon: 'success' icon: 'success'
}) })
}) })
.catch(error => { .catch(error => {
uni.showoast({ uni.showToast({
title: '下载失败', title: '下载失败',
icon: 'none' icon: 'none'
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment