Merge pull request #1940 from YiGuan-z/main

为Safari添加拖拽框的简略修复
This commit is contained in:
tangly1024
2024-03-04 14:03:18 +08:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -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)
}

View File

@@ -30,7 +30,7 @@ import { Contact } from './components/Contact'
import { Brand } from './components/Brand'
import { Footer } from './components/Footer'
import { BackToTopButton } from './components/BackToTopButton'
import { MadeWithButton } from './components/MadeWithButton'
// import { MadeWithButton } from './components/MadeWithButton'
import { SVG404 } from './components/svg/SVG404'
import { Banner } from './components/Banner'
import { SignInForm } from './components/SignInForm'
@@ -64,7 +64,7 @@ const LayoutBase = (props) => {
{/* 悬浮按钮 */}
<BackToTopButton/>
<MadeWithButton/>
{/* <MadeWithButton/> */}
</div>
}