From 34f554553e79f7a0fb8d845b6014916f26262ca1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E8=AA=89=E7=A8=8B?= <2659568239@qq.com> Date: Thu, 18 Jan 2024 15:43:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/index.tsx b/src/pages/index.tsx index f3cbbcd..2c32652 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -11,7 +11,7 @@ import ClearInfoDialog from '@/components/ClearInfoDialog'; // 首页(目前无用了) export default function IndexPage() { // 是否认证通过 - const [isAuth, setIsAuth] = useState(false); + const [isAuth, setIsAuth] = useState(true); const [visibility, setVisibility] = useState(false); const [form] = Form.useForm(); const [loading, setLoading] = useState(false); @@ -26,13 +26,13 @@ export default function IndexPage() { ] useEffect(() => { - let is_auth: any = localStorage.getItem('is_auth'); - if (is_auth) { - setIsAuth(true) - } else { - initForm(); - setVisibility(true); - } + // let is_auth: any = localStorage.getItem('is_auth'); + // if (is_auth) { + // setIsAuth(true) + // } else { + // initForm(); + // setVisibility(true); + // } }, [])