diff --git a/components/Header.tsx b/components/Header.tsx index 39a1f28..7edc66b 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -44,7 +44,7 @@ export const Header: FC = ({ } }, []) - const onChooseItem = (e) => { + const onChooseItem = (e: string) => { setChooseValue(e) setIsShow(false) document.body.classList.remove('overflow-hidden') diff --git a/tailwind.config.ts b/tailwind.config.ts index 8811aa9..ba3bea9 100644 --- a/tailwind.config.ts +++ b/tailwind.config.ts @@ -14,9 +14,7 @@ const config: Config = { md: [{ min: '900px', max: '1280px' }], sm: { min: '900px' }, }, - backgroundColor: { - 'full-screen': 'rgba(255, 255, 255, 0)', // 透明白色 - }, + width: { container: '1280px', },