diff --git a/pages/API/element-takesnapshot/element-takesnapshot.uvue b/pages/API/element-takesnapshot/element-takesnapshot.uvue
index 8f87f215b4de4bb8e60e466778488d1f86b4b455..d9f18b11ac74109f34f35c38be95bbae92dadff5 100644
--- a/pages/API/element-takesnapshot/element-takesnapshot.uvue
+++ b/pages/API/element-takesnapshot/element-takesnapshot.uvue
@@ -8,7 +8,7 @@
-
+
@@ -37,7 +37,7 @@
takeSnapshotClick() {
const view = uni.getElementById('snapshot-content')!
view.takeSnapshot({
- success: function (res : TakeSnapshotSuccess) {
+ success: function (res) {
console.log(res.tempFilePath)
this.snapImage = res.tempFilePath
uni.showToast({
@@ -45,14 +45,14 @@
icon: "none"
})
},
- fail: function (res : TakeSnapshotFail) {
+ fail: function (res) {
console.log(res)
uni.showToast({
icon: 'error',
title: '截图失败'
})
}
- } as TakeSnapshotOptions)
+ })
},
saveToAlbum(e : TouchEvent) {
// console.log(e.currentTarget!.getAttribute("src"));