diff --git a/packages/app-client/src/components/delivery/Step3Success.tsx b/packages/app-client/src/components/delivery/Step3Success.tsx index afa1313..f9f46e9 100644 --- a/packages/app-client/src/components/delivery/Step3Success.tsx +++ b/packages/app-client/src/components/delivery/Step3Success.tsx @@ -190,28 +190,12 @@ export default function Step3Success(props: Step3SuccessProps) { icon: "success", }); } else { - try { - // 下载文件 - const downloadRes = await Taro.downloadFile({ - url: profitExcelUrl!, - }); - - if (downloadRes.tempFilePath) { - setExcelTempFilePath(downloadRes.tempFilePath); - Taro.showToast({ - title: "Excel下载成功", - icon: "success", - duration: 2000, - }); - } - } catch (error) { - console.error("下载Excel失败:", error); - Taro.showToast({ - title: "下载Excel失败", - icon: "none", - duration: 2000, - }); - } + setExcelTempFilePath(profitExcelUrl); + Taro.showToast({ + title: "Excel下载成功", + icon: "success", + duration: 2000, + }); } }; @@ -405,15 +389,15 @@ export default function Step3Success(props: Step3SuccessProps) { {tempFilePath && ( )} @@ -495,8 +479,8 @@ export default function Step3Success(props: Step3SuccessProps) { {excelTempFilePath && (