From 5d598657eb2019cc5c03285b539be1494f65338a Mon Sep 17 00:00:00 2001 From: orz12 Date: Mon, 22 Apr 2024 20:19:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=83=A8=E5=88=86=E4=B8=93=E6=A0=8F?= =?UTF-8?q?=E9=93=BE=E6=8E=A5=E6=9C=AA=E8=AF=86=E5=88=ABid?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/utils/app_scheme.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/utils/app_scheme.dart b/lib/utils/app_scheme.dart index efcb9f46..b4c3aee9 100644 --- a/lib/utils/app_scheme.dart +++ b/lib/utils/app_scheme.dart @@ -251,7 +251,12 @@ class PiliSchame { break; case 'read': print('专栏'); - String id = 'cv${matchNum(query!['id']!).first}'; + late String id; + if (query != null && query!['id'] != null) { + id = 'cv${matchNum(query!['id']!).first}'; + } else { + id = 'cv${matchNum(path).first}'; + } Get.toNamed('/htmlRender', parameters: { 'url': value.dataString!, 'title': '',