From 066583828bf3ad1140be1cd7e882d01c29b3cbce Mon Sep 17 00:00:00 2001 From: besscroft Date: Tue, 12 Nov 2024 00:54:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=80=91=E5=B8=83?= =?UTF-8?q?=E6=B5=81=E6=97=A0=E6=B3=95=E5=8A=A0=E8=BD=BD=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hooks/useSWRPageTotalHook.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hooks/useSWRPageTotalHook.ts b/hooks/useSWRPageTotalHook.ts index 0178b86..60c8e2f 100644 --- a/hooks/useSWRPageTotalHook.ts +++ b/hooks/useSWRPageTotalHook.ts @@ -1,10 +1,10 @@ import useSWR from 'swr' import { ImageHandleProps } from '~/types' -export const useSWRPageTotalHook = ({ args, totalHandle, tag }: ImageHandleProps) => { - const { data, error, isLoading, isValidating, mutate } = useSWR([args, tag], +export const useSWRPageTotalHook = ({ args, totalHandle, album }: ImageHandleProps) => { + const { data, error, isLoading, isValidating, mutate } = useSWR([args, album], () => { - return totalHandle(tag) + return totalHandle(album) }) return {