From 478e297b5fd8eb14088779853d1d2a6f5a0c75d1 Mon Sep 17 00:00:00 2001 From: liuhaikang Date: Sat, 15 Feb 2025 09:42:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=87=E6=97=B6=E6=96=B9?= =?UTF-8?q?=E6=B3=95router.push=E6=96=B9=E6=B3=95=E4=B8=BArouter.pushUrl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuhaikang --- msgpack-javascript/entry/src/main/ets/pages/Index.ets | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/msgpack-javascript/entry/src/main/ets/pages/Index.ets b/msgpack-javascript/entry/src/main/ets/pages/Index.ets index 93ad74a5..aee3c56c 100644 --- a/msgpack-javascript/entry/src/main/ets/pages/Index.ets +++ b/msgpack-javascript/entry/src/main/ets/pages/Index.ets @@ -22,22 +22,22 @@ struct Index { Column() { Button($r('app.string.Basic_Encode_Decode')) .onClick(() => { - router.push({ url: 'pages/EncodeDecodePage' }) + router.pushUrl({ url: 'pages/EncodeDecodePage' }) }) Button($r('app.string.Constructor_Encode_Decode')) .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/EncodeDecodeConstructorPage' }) + router.pushUrl({ url: 'pages/EncodeDecodeConstructorPage' }) }) Button($r('app.string.Multi_Encode_Decode')) .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/MultiDecodePage' }) + router.pushUrl({ url: 'pages/MultiDecodePage' }) }) Button($r('app.string.Special_character_Encode_Decode')) .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/ExamPage' }) + router.pushUrl({ url: 'pages/ExamPage' }) }) } .width('100%') -- Gitee