diff --git a/msgpack-javascript/entry/src/main/ets/pages/Index.ets b/msgpack-javascript/entry/src/main/ets/pages/Index.ets index 93ad74a5974125b08e7446eb5747400f25cf6fe6..aee3c56c1673e23923b943b8bc9b7295bf40837b 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%')