|
|
@ -11,7 +11,7 @@ import ClearInfoDialog from '@/components/ClearInfoDialog';
|
|
|
|
// 首页(目前无用了)
|
|
|
|
// 首页(目前无用了)
|
|
|
|
export default function IndexPage() {
|
|
|
|
export default function IndexPage() {
|
|
|
|
// 是否认证通过
|
|
|
|
// 是否认证通过
|
|
|
|
const [isAuth, setIsAuth] = useState(false);
|
|
|
|
const [isAuth, setIsAuth] = useState(true);
|
|
|
|
const [visibility, setVisibility] = useState<boolean>(false);
|
|
|
|
const [visibility, setVisibility] = useState<boolean>(false);
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
const [form] = Form.useForm();
|
|
|
|
const [loading, setLoading] = useState(false);
|
|
|
|
const [loading, setLoading] = useState(false);
|
|
|
@ -26,13 +26,13 @@ export default function IndexPage() {
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
let is_auth: any = localStorage.getItem('is_auth');
|
|
|
|
// let is_auth: any = localStorage.getItem('is_auth');
|
|
|
|
if (is_auth) {
|
|
|
|
// if (is_auth) {
|
|
|
|
setIsAuth(true)
|
|
|
|
// setIsAuth(true)
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
initForm();
|
|
|
|
// initForm();
|
|
|
|
setVisibility(true);
|
|
|
|
// setVisibility(true);
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}, [])
|
|
|
|
}, [])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|