From 20e6e9a545ded579d837117bb716a1c8b2ac1be4 Mon Sep 17 00:00:00 2001 From: PH2 <1293456824@qq.com> Date: Wed, 21 Apr 2021 20:00:52 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81router=20webView=E7=9A=84=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/util/router_util.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/util/router_util.dart b/lib/util/router_util.dart index bcc1c7e..9f0edbc 100644 --- a/lib/util/router_util.dart +++ b/lib/util/router_util.dart @@ -45,6 +45,12 @@ class RouterUtil { } } + // webView + if (skipModel?.skipIdentifier == 'pub.flutter.url') { + this.openWebview(skipModel?.url, context); + return; + } + Widget page = EmptyPage(); if (PageFactory.hasRegisted(skipModel.skipIdentifier)) { page = PageFactory.create(skipModel.skipIdentifier, data);