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