|
|
@@ -44,7 +44,7 @@ class RouterUtil { |
|
|
|
} |
|
|
|
|
|
|
|
// TODO webView 临时代码,IOS添加原生WebView需要改动这里 |
|
|
|
if (skipModel?.skipIdentifier == 'pub.flutter.url' && Platform.isAndroid) { |
|
|
|
if (skipModel?.skipIdentifier == 'pub.flutter.url') { |
|
|
|
RouterUtil.openWebview(skipModel?.url, context); |
|
|
|
return; |
|
|
|
} |
|
|
@@ -88,11 +88,11 @@ class RouterUtil { |
|
|
|
SkipModel model = SkipModel(); |
|
|
|
model.skipIdentifier = 'pub.flutter.url'; |
|
|
|
model.url = url; |
|
|
|
if (Platform.isAndroid) { |
|
|
|
Application.doStringParamsMethod("openUrl", data: {"url": model.url}); |
|
|
|
return null; |
|
|
|
} |
|
|
|
RouterUtil.route(model, model.toJson(), context); |
|
|
|
|
|
|
|
Application.doStringParamsMethod("openUrl", data: {"url": model.url}); |
|
|
|
return null; |
|
|
|
// |
|
|
|
// RouterUtil.route(model, model.toJson(), context); |
|
|
|
} |
|
|
|
|
|
|
|
// 回到首页 |
|
|
|