From b943cdf6ba700ccabf6cd1368dbfc38bb4963ae8 Mon Sep 17 00:00:00 2001 From: fff Date: Tue, 24 Dec 2024 10:18:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=80=E6=96=B0=E7=9A=84fl?= =?UTF-8?q?utter=E5=85=BC=E5=AE=B9=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main_page.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/main_page.dart b/lib/main_page.dart index 7d4b03bf..02634123 100644 --- a/lib/main_page.dart +++ b/lib/main_page.dart @@ -351,12 +351,12 @@ class _MainPage extends State with WidgetsBindingObserver { } else { pushData = sharedPreferences.getString("pushData") ?? ""; } - if (pushData == null || pushData == "") return; - Map pushMap = jsonDecode(pushData); + if (pushData == "") return; + Map? pushMap = jsonDecode(pushData); if (pushMap != null) { String routeName = ""; Map params = {}; - switch (pushMap["typed"].toString()) { + switch (pushMap["typed"] ?? '') { case "1": case "ARTICLE": routeName = "/router/web_page";