diff --git a/bun.lockb b/bun.lockb index 1624005..be521dc 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index e91036c..6be8f09 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,19 +1,29 @@ -// src/components/Footer.tsx +import { fetchSetting } from "@/lib/nezha-api"; +import { useQuery } from "@tanstack/react-query"; import React from "react"; import { useTranslation } from "react-i18next"; const Footer: React.FC = () => { const { t } = useTranslation(); + + const { data: settingData } = useQuery({ + queryKey: ["setting"], + queryFn: () => fetchSetting(), + refetchOnMount: true, + refetchOnWindowFocus: true, + }); + return (