diff --git a/ArkUI/entry/src/main/ets/pages/JumpPageTransferParameters.ets b/ArkUI/entry/src/main/ets/pages/JumpPageTransferParameters.ets index fbca1b0dcbbccf1212e884cc0cfdf1a28183a2a1..0e052b3d235128ad5f238015d672dfe0e42c2241 100644 --- a/ArkUI/entry/src/main/ets/pages/JumpPageTransferParameters.ets +++ b/ArkUI/entry/src/main/ets/pages/JumpPageTransferParameters.ets @@ -61,7 +61,7 @@ export struct MyFirstNavDestination { @Consume('pathInfos') pathInfos: NavPathStack; getParamsPrint() { - console.info('xuerui', 'param is ' + JSON.stringify(this.pathInfos.getParamByName('MyFirstNavDestination'))); + console.info('param is ' + JSON.stringify(this.pathInfos.getParamByName('MyFirstNavDestination'))); } build() { @@ -94,17 +94,17 @@ export struct MySecondNavDestination { } .height('100%') }.onBackPressed(() => { - // Pop B page + // Pop B page. this.pathInfos.pop(); - //Get the name of the current stack top page (page A) + //Get the name of the current stack top page (page A). let allPathName: Array = this.pathInfos.getAllPathName(); let pathNameA: string = allPathName[allPathName.length - 1]; - // Pop A page + // Pop A page. this.pathInfos.pop(); - // PUSH A page again + // PUSH A page again. this.pathInfos.pushPath(new NavPathInfo(pathNameA, this.routerParams)) return true; })