From 240d81f18a548b071c569a1276d819e6155ac3ba Mon Sep 17 00:00:00 2001 From: ywcoder <1104410818@qq.com> Date: Thu, 31 Jul 2025 09:26:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=B1=E6=96=87=E6=B3=A8=E9=87=8A=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=8F=A5=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/ets/pages/JumpPageTransferParameters.ets | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ArkUI/entry/src/main/ets/pages/JumpPageTransferParameters.ets b/ArkUI/entry/src/main/ets/pages/JumpPageTransferParameters.ets index fbca1b0..0e052b3 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; }) -- Gitee