From 6d156187472a9cbbdb1bd991a74ecda4fb103386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=86=E4=B8=BA=E5=90=9B=E6=95=85?= Date: Sat, 28 Sep 2024 00:42:25 +0800 Subject: [PATCH] [fix] fix loading status --- pages/search.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/pages/search.tsx b/pages/search.tsx index 465e044..c32a1ed 100644 --- a/pages/search.tsx +++ b/pages/search.tsx @@ -24,6 +24,7 @@ export default function SearchPage(props: SearchPageProps) { const { toast } = useToast(); const fetchSearchAPI = (param: string): Promise => { + setIsLoading(true) return axios.get(`/api/search/${param}`).then((response) => response.data); };