diff --git a/packages/app-client/src/components/delivery/Step3Success.tsx b/packages/app-client/src/components/delivery/Step3Success.tsx index 3b58807..2ecb43d 100644 --- a/packages/app-client/src/components/delivery/Step3Success.tsx +++ b/packages/app-client/src/components/delivery/Step3Success.tsx @@ -65,25 +65,11 @@ export default function Step3Success(props: Step3SuccessProps) { if (downloadRes.tempFilePath) { setTempFilePath(downloadRes.tempFilePath); - - // 保存PDF到手机 - if (Taro.saveFile) { - await Taro.saveFile({ - tempFilePath: downloadRes.tempFilePath, - }); - - Taro.showToast({ - title: "PDF下载成功", - icon: "success", - duration: 2000, - }); - } else { - // 如果不支持saveFile,直接提示下载完成 - Taro.openDocument({ - filePath: downloadRes.tempFilePath, - showMenu: true, - }); - } + Taro.showToast({ + title: "PDF下载成功", + icon: "success", + duration: 2000, + }); } } catch (error) { console.error("下载PDF失败:", error); @@ -173,8 +159,9 @@ export default function Step3Success(props: Step3SuccessProps) { {tempFilePath && (