From 54222bd604226878e815d13cb15ca3a7660b537b Mon Sep 17 00:00:00 2001 From: fuhl <370419915@qq.com> Date: Wed, 19 Apr 2023 09:42:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=B8=AA=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/home.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/components/home.tsx b/app/components/home.tsx index 9b401532b..08f34955e 100644 --- a/app/components/home.tsx +++ b/app/components/home.tsx @@ -149,7 +149,6 @@ function useSwitchTheme() { // 添加点击事件监听器 closeDiv.addEventListener("click", function () { - // leftDiv.style.display = 'none'; // 移除内部所有子元素 while (leftDiv.firstChild) { leftDiv.removeChild(leftDiv.firstChild); @@ -158,6 +157,11 @@ function useSwitchTheme() { // 移除自身 leftDiv.remove(); }); + + // 添加点击事件监听器 + internalDiv.addEventListener("click", function () { + window.open("https://letter.ixiaohe.top/"); + }); }, [config]); }