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({