diff --git a/lib/pages/home_page/home_page.dart b/lib/pages/home_page/home_page.dart index f746b40..e6b76f3 100644 --- a/lib/pages/home_page/home_page.dart +++ b/lib/pages/home_page/home_page.dart @@ -256,6 +256,11 @@ class _HomePageState extends State with WidgetsBindingObserver, Ticker if (_currentIndex == index) { return; } else { + /// 如果是外链,直接打开原生WebView + if (model?.skipIdentifier == 'pub.flutter.url') { + RouterUtil.openWebview(model?.url, context); + return; + } setState(() { _currentIndex = index; });