Commit 8fa92463 authored by Damon's avatar Damon

缓存阻塞了保存图片到相册

parent 72b2a1b4
......@@ -76,12 +76,12 @@
// 保存原图到本地
path = photo.tempPath.origin
let result = await this.saveLocal(path)
if(result){
uni.showToast({
icon: 'none',
title: '已将照片原图保存到本地相册'
})
}
// if(result){
// uni.showToast({
// icon: 'none',
// title: '已将照片原图保存到本地相册'
// })
// }
}
// if(photo.currentItem){
// photo.currentItem.imageList.unshift(photo.tempPath.mixWater)
......@@ -96,14 +96,14 @@
if(photo.tempPath.mixWater){
// 保存水印处理图片到本地
path = photo.tempPath.mixWater
let result1 = await this.saveLocal(path)
this.saveToStroage(path) // 保存到本地缓存
let result1 = await this.saveLocal(path)
if(result1){
uni.showToast({
icon: 'none',
title: '已将水印图片保存到本地相册'
})
}
// if(result1){
// uni.showToast({
// icon: 'none',
// title: '已将水印图片保存到本地相册'
// })
// }
}
},
saveToStroage(path) {
......
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