feat: update

This commit is contained in:
landaiqing
2024-05-05 16:33:55 +08:00
parent 91f8a0b9d5
commit 78a6b7fe99

View File

@@ -6,6 +6,7 @@ import SvgIcon from '@/components/SvgIcon/SvgIcon.tsx'
const HomeIndex: React.FC = () => { const HomeIndex: React.FC = () => {
useEffect(() => { useEffect(() => {
document.body.classList.add('body') document.body.classList.add('body')
setTimeout(() => {
if (!CSS.supports('animation-timeline: scroll()')) { if (!CSS.supports('animation-timeline: scroll()')) {
// const SPAN = 'max(45vw, 260px)'; // const SPAN = 'max(45vw, 260px)';
const CONFIG = [ const CONFIG = [
@@ -233,6 +234,8 @@ const HomeIndex: React.FC = () => {
}, },
}) })
} }
}, 1000)
return () => { return () => {
document.body.classList.remove('body') document.body.classList.remove('body')
} }