This commit is contained in:
2023-09-02 12:52:55 +08:00
parent 4293d010ef
commit f2025bfe6b
3 changed files with 60 additions and 53 deletions

View File

@@ -15,8 +15,7 @@ class HomePage extends HookWidget {
@override
Widget build(BuildContext context) {
tryInitApi(context);
if (!auth.isAuthed) {
if (tryInitApi(context) && !auth.isAuthed && !auth.checked) {
auth.checkAuth().then((re) {
if (!re) {
if (auth.status!.noUser &&