From 55494505236cfae6d7dae8885b7c74eff2285767 Mon Sep 17 00:00:00 2001 From: xjs Date: Tue, 20 May 2025 14:15:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=94=9F=E6=88=90=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AntechamberWishList/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/AntechamberWishList/index.tsx b/src/components/AntechamberWishList/index.tsx index 76bdf00..297756e 100644 --- a/src/components/AntechamberWishList/index.tsx +++ b/src/components/AntechamberWishList/index.tsx @@ -17,6 +17,7 @@ import { import { fetchFile } from "@/apis/user"; import { useAbortController } from "@/hooks/useAbortController"; import { useSearchParams } from "react-router-dom"; + import { toast } from "@/hooks/use-toast"; export default function AntechamberWishList() { @@ -27,6 +28,10 @@ export default function AntechamberWishList() { const token = searchParams.get("token") || ""; const handleNavigate = async (item: any) => { + const loadingId = toast({ + title:'文件生成中...', + duration: 10000, + }) const result = await fetchFile({ params: { id: item.vId, location: item.personlocationCode }, options: { @@ -34,6 +39,7 @@ export default function AntechamberWishList() { headers: { Authorization: `Bearer ${token}` }, }, }); + loadingId.dismiss(); if (result.message) { toast({ title: result.message, @@ -83,7 +89,7 @@ export default function AntechamberWishList() { -
+
{wishList.map((item: any) => (