From 2c7ce60f421400153f4a910084f4a838ad127b7f Mon Sep 17 00:00:00 2001 From: orz12 Date: Mon, 8 Jan 2024 19:02:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=A6=96=E5=B1=8F=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=97=A0cookie?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/main.dart b/lib/main.dart index 4357cf46..09dc3184 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -30,6 +30,8 @@ void main() async { .then((_) async { await GStrorage.init(); await setupServiceLocator(); + Request(); + await Request.setCookie(); runApp(const MyApp()); // 小白条、导航栏沉浸 SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge); @@ -38,7 +40,6 @@ void main() async { systemNavigationBarDividerColor: Colors.transparent, statusBarColor: Colors.transparent, )); - await Request.setCookie(); Data.init(); GStrorage.lazyInit(); PiliSchame.init();