From 1a8e0fb505a7aee92a1b49209513b4cda742e994 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 22 Mar 2022 12:51:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9C=8B=E6=9D=BF=20=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E4=B8=BB=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Live2D.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/Live2D.js b/components/Live2D.js index e82ee884..fa86636e 100644 --- a/components/Live2D.js +++ b/components/Live2D.js @@ -1,5 +1,6 @@ /* eslint-disable no-undef */ import BLOG from '@/blog.config' +import { useGlobal } from '@/lib/global' import { loadExternalResource } from '@/lib/utils' import { useEffect, useState } from 'react' @@ -8,6 +9,7 @@ export default function Live2D () { return <> } const [init, setInit] = useState() + const { switchTheme } = useGlobal() // if (typeof window !== 'undefined' && !hasLoad) { // initLive2D() @@ -21,7 +23,7 @@ export default function Live2D () { } }, [init]) - return + return } function initLive2D () {