拿到当前页面参数的方式有两种可以作参考:方法一:在onReady里面拿;NavDestination(){} .onReady((context:NavDestinationContext)=>{let Paramus = context.pathInfo.param as string;}) 方法二:通过byIndex 拿;this.pathStack?.getParamByIndex(this.pathStack?.size()-1);
拿到当前页面参数的方式有两种可以作参考:
方法一:在onReady里面拿;
方法二:通过byIndex 拿;