Browse Source

1、router webView的特殊处理

tags/0.0.14+3
PH2 3 years ago
parent
commit
20e6e9a545
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      lib/util/router_util.dart

+ 6
- 0
lib/util/router_util.dart View File

@@ -45,6 +45,12 @@ class RouterUtil {
} }
} }


// webView
if (skipModel?.skipIdentifier == 'pub.flutter.url') {
this.openWebview(skipModel?.url, context);
return;
}

Widget page = EmptyPage(); Widget page = EmptyPage();
if (PageFactory.hasRegisted(skipModel.skipIdentifier)) { if (PageFactory.hasRegisted(skipModel.skipIdentifier)) {
page = PageFactory.create(skipModel.skipIdentifier, data); page = PageFactory.create(skipModel.skipIdentifier, data);


Loading…
Cancel
Save