From 7377e317aedda2cefb6f648a7706abc5f489c7f2 Mon Sep 17 00:00:00 2001 From: wangguoce Date: Tue, 18 Feb 2025 10:18:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=BC=96=E8=AF=91=E8=AD=A6?= =?UTF-8?q?=E5=91=8A=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangguoce --- entry/src/main/ets/pages/demoV1.ets | 12 ++++++------ entry/src/main/ets/pages/demoV2.ets | 12 ++++++------ entry/src/main/ets/pages/index.ets | 4 ++-- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/entry/src/main/ets/pages/demoV1.ets b/entry/src/main/ets/pages/demoV1.ets index 160bbfd..b9e6afc 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 cd968ad..ffca190 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 57e5877..d57634f 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%') -- Gitee