From c1f3b3a5a88ce0ce97f84e250fc0b9ed81d777f8 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Tue, 17 Oct 2023 19:50:06 +0800 Subject: [PATCH] =?UTF-8?q?takesnapshot=20=E4=B8=8D=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E5=86=8D=E6=89=8B=E5=8A=A8=E8=BD=AC=E6=8D=A2=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/element-takesnapshot/element-takesnapshot.uvue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/API/element-takesnapshot/element-takesnapshot.uvue b/pages/API/element-takesnapshot/element-takesnapshot.uvue index 8f87f215..d9f18b11 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")); -- GitLab