From 93d2f0e3b46404ecf3a565d74ebf01e5f51510d5 Mon Sep 17 00:00:00 2001 From: Casey Cheng <61931277+YiGuan-z@users.noreply.github.com> Date: Sun, 3 Mar 2024 09:07:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BASafari=E6=B7=BB=E5=8A=A0=E6=8B=96?= =?UTF-8?q?=E6=8B=BD=E6=A1=86=E7=9A=84=E7=AE=80=E7=95=A5=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/ThemeSwitch.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/ThemeSwitch.js b/components/ThemeSwitch.js index aeaeb3ab..788f81b1 100644 --- a/components/ThemeSwitch.js +++ b/components/ThemeSwitch.js @@ -20,6 +20,7 @@ const ThemeSwitch = () => { // 修改当前路径url中的 theme 参数 // 例如 http://localhost?theme=hexo 跳转到 http://localhost?theme=newTheme const onThemeSelectChange = (e) => { + document.ontouchmove = document.ontouchend = document.onmousemove = document.onmouseup = null setIsLoading(true) const newTheme = e.target.value const query = router.query @@ -32,6 +33,7 @@ const ThemeSwitch = () => { } const onLangSelectChange = (e) => { + document.ontouchmove = document.ontouchend = document.onmousemove = document.onmouseup = null const newLang = e.target.value changeLang(newLang) }