feat: update

This commit is contained in:
landaiqing
2024-05-05 21:32:59 +08:00
parent 97c1559e50
commit f5d2fd0062

View File

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