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); + // } }, [])