panhui 6 lat temu
rodzic
commit
0609c95804
1 zmienionych plików z 5 dodań i 2 usunięć
  1. 5 2
      lib/pages/roomInfo.dart

+ 5 - 2
lib/pages/roomInfo.dart

@@ -238,9 +238,10 @@ class RoomInfoState extends State<RoomInfo>
       "白银": Color(0xFFAFCAD8),
       "青铜": Color(0xFFE18D50),
     };
-    getRoomInfo();
+    
     Future.delayed(Duration(milliseconds: 100), () {
       checkJoinInfo();
+      getRoomInfo();
       // showBackDialog();
       // showStart();
     });
@@ -631,7 +632,9 @@ class RankContentState extends State<RankContent> {
   void initState() {
     
     super.initState();
-    getTopList();
+    Future.delayed(Duration(milliseconds: 100),(){
+      getTopList();
+    });
   }
 
   @override