From c81086a7f5bc097631042c01a204752056837788 Mon Sep 17 00:00:00 2001 From: lizhiyong <1679963578@qq.com> Date: Wed, 10 Jan 2024 17:53:42 +0800 Subject: [PATCH] fix code --- components/Header.tsx | 2 +- tailwind.config.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) 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', },