From 3aa216d70f9212a63eddb0ec2767c544084efd00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=9D=B0?= Date: Mon, 6 Oct 2025 17:29:21 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=9A=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/other_pages/ntrp-evaluate/index.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/other_pages/ntrp-evaluate/index.tsx b/src/other_pages/ntrp-evaluate/index.tsx index 6702ad6..c4df222 100644 --- a/src/other_pages/ntrp-evaluate/index.tsx +++ b/src/other_pages/ntrp-evaluate/index.tsx @@ -531,8 +531,13 @@ function Result() { Taro.authorize({ scope: "scope.writePhotosAlbum", success: async () => { - const url = await genCardImage(); - Taro.saveImageToPhotosAlbum({ filePath: url }); + try { + const url = await genCardImage(); + Taro.saveImageToPhotosAlbum({ filePath: url }); + Taro.showToast({ title: "保存成功" }); + } catch (e) { + Taro.showToast({ title: "图片保存失败", icon: "none" }); + } }, fail: () => { Taro.showModal({