fix: cannot read properties of undefined (reading 'offsetWidthi')

This commit is contained in:
landaiqing
2024-04-27 01:17:51 +08:00
parent 21e475db41
commit ded7ef012a
7 changed files with 1160 additions and 52 deletions

View File

@@ -1,7 +1,14 @@
import React from 'react'
const FooterComponent: React.FC = () => {
return (
<div style={{ textAlign: 'center', color: 'black' }}>
<div
style={{
textAlign: 'center',
color: 'black',
bottom: 0,
position: 'absolute',
width: '100%',
}}>
schisandra ©{new Date().getFullYear()} Created by schisandra
</div>
)

View File

@@ -17,7 +17,7 @@ const HomeIndex: React.FC = () => {
r: -8,
h: 160,
w: (el: any) => {
return Math.max(320, el.parentNode.offsetWidthi * 0.55)
return Math.max(320, el.parentNode.offsetWidth * 0.55)
},
},
@@ -47,7 +47,7 @@ const HomeIndex: React.FC = () => {
{
x: () => {
return Math.max(260, window.innerWidth * 0.45) * 1
return Math.max(260, window.innerWidth * 0.45)
},
y: -30,
r: -5,