From f789654c6b87efa687a7f62da929850bd171413f Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Sat, 14 Sep 2024 16:02:46 +0800 Subject: [PATCH] fix build --- components/ThemeSwitch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/ThemeSwitch.js b/components/ThemeSwitch.js index 2d92c625..67759ee0 100644 --- a/components/ThemeSwitch.js +++ b/components/ThemeSwitch.js @@ -12,7 +12,7 @@ import SideBarDrawer from './SideBarDrawer' * @returns 主题切换 */ const ThemeSwitch = () => { - const { theme, lang, changeLang, locale, isDarkMode, toggleDarkMode } = + const { theme, locale, isDarkMode, toggleDarkMode } = useGlobal() const router = useRouter() const currentTheme = getQueryParam(router.asPath, 'theme') || theme