diff --git a/entry/src/main/ets/pages/demoV1.ets b/entry/src/main/ets/pages/demoV1.ets index 160bbfdf96cef4d50e7cc6a597ac858fa651d95f..b9e6afc692c48a9accaa551ff1cd18d2f743eedb 100644 --- a/entry/src/main/ets/pages/demoV1.ets +++ b/entry/src/main/ets/pages/demoV1.ets @@ -22,32 +22,32 @@ struct Index { Column() { Button($r("app.string.quickStart")) .onClick(() => { - router.push({ url: 'pages/quickStart' }) + router.pushUrl({ url: 'pages/quickStart' }) }) Button($r("app.string.customConfig")) .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/customConfig' }) + router.pushUrl({ url: 'pages/customConfig' }) }) Button($r("app.string.customRefreshAnim")) .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/customRefreshAnim' }) + router.pushUrl({ url: 'pages/customRefreshAnim' }) }) Button($r("app.string.fullScreen")) .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/fullScreen' }) + router.pushUrl({ url: 'pages/fullScreen' }) }) Button($r("app.string.tabsTestPage")) .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/tabsTestPage' }) + router.pushUrl({ url: 'pages/tabsTestPage' }) }) Button($r("app.string.lazyForEachGuide")) .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/lazyForEachGuide' }) + router.pushUrl({ url: 'pages/lazyForEachGuide' }) }) } .width('100%') diff --git a/entry/src/main/ets/pages/demoV2.ets b/entry/src/main/ets/pages/demoV2.ets index cd968ad11db4866f98f6ecded808d22dab42297c..ffca190410691f8049e45eaf48bd5c42e24511dd 100644 --- a/entry/src/main/ets/pages/demoV2.ets +++ b/entry/src/main/ets/pages/demoV2.ets @@ -22,32 +22,32 @@ struct Index { Column() { Button($r("app.string.quickStart")) .onClick(() => { - router.push({ url: 'pages/quickStartV2' }) + router.pushUrl({ url: 'pages/quickStartV2' }) }) Button($r("app.string.customConfig")) .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/customConfigV2' }) + router.pushUrl({ url: 'pages/customConfigV2' }) }) Button($r("app.string.customRefreshAnim")) .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/customRefreshAnimV2' }) + router.pushUrl({ url: 'pages/customRefreshAnimV2' }) }) Button($r("app.string.fullScreen")) .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/fullScreenV2' }) + router.pushUrl({ url: 'pages/fullScreenV2' }) }) Button($r("app.string.tabsTestPage")) .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/tabsTestPageV2' }) + router.pushUrl({ url: 'pages/tabsTestPageV2' }) }) Button($r("app.string.lazyForEachGuide")) .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/lazyForEachGuideV2' }) + router.pushUrl({ url: 'pages/lazyForEachGuideV2' }) }) } .width('100%') diff --git a/entry/src/main/ets/pages/index.ets b/entry/src/main/ets/pages/index.ets index 57e5877744a39a18d1bb92962a9174f23edfa193..d57634f85a9b6c09f19617d42b86e729d13872d3 100644 --- a/entry/src/main/ets/pages/index.ets +++ b/entry/src/main/ets/pages/index.ets @@ -22,12 +22,12 @@ struct Index { Column() { Button("DemoV1") .onClick(() => { - router.push({ url: 'pages/demoV1' }) + router.pushUrl({ url: 'pages/demoV1' }) }) Button("DemoV2") .margin({ top: 10 }) .onClick(() => { - router.push({ url: 'pages/demoV2' }) + router.pushUrl({ url: 'pages/demoV2' }) }) } .width('100%')