master
鲁誉程 10 months ago
parent 668f391ac9
commit 34f554553e

@ -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<boolean>(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);
// }
}, [])

Loading…
Cancel
Save