Commit 7b457c5e authored by Damon's avatar Damon

清空图片

parent c8f11bba
...@@ -235,13 +235,29 @@ ...@@ -235,13 +235,29 @@
// 清除图片 // 清除图片
handleClickSure: function() { handleClickSure: function() {
this.$u.cloudApi.cleanImage({ // this.$u.cloudApi.cleanImage({
'token': getApp().globalData.token, // 'token': getApp().globalData.token,
}).then(res => { // }).then(res => {
this.isPopShow = false // this.isPopShow = false
if (res && res.result) { // if (res && res.result) {
this.getListData() // this.getListData()
} // }
// })
const self = this
uni.getSavedFileList({
success(e) {
const {fileList} = e
// 清除本地照片
fileList.forEach(v => {
uni.removeSavedFile({
filePath: v.filePath
})
})
//清除缓存,重新获取数据
cache.removeCache(self.systemId)
self.isPopShow = false
self.getListData()
}
}) })
} }
} }
......
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