fix: 部分专栏链接未识别id

This commit is contained in:
orz12
2024-04-22 20:19:50 +08:00
parent a9cb90b123
commit 5d598657eb

View File

@@ -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': '',