parseRouteInformation method

  1. @override
Future<HiRouter> parseRouteInformation(
  1. RouteInformation routeInformation
)
override

app首次启动时,解析浏览器的url

Implementation

@override
Future<HiRouter> parseRouteInformation(
    RouteInformation routeInformation) async {
  String location = routeInformation.location!;
  // 应用已经启动,正进行路由跳转
  if (appRoutePath.currentPage != null) {
    // appRoutePath.setJumpRoute(location);
  }
  // 首次通过路由进入应用
  appRoutePath.setPageByLocation(location);

  return appRoutePath;
}