From eeaefc8c4eb661cdd36fe9d2f11d19db806f113c Mon Sep 17 00:00:00 2001 From: wangguoce Date: Sat, 22 Feb 2025 10:23:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=AF=91=E6=9E=84=E5=BB=BA=E8=AD=A6?= =?UTF-8?q?=E5=91=8A=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wangguoce --- js-joda/entry/src/main/ets/pages/Index.ets | 2 +- js-joda/entry/src/main/ets/pages/fifth.ets | 2 +- js-joda/entry/src/main/ets/pages/fourth.ets | 2 +- js-joda/entry/src/main/ets/pages/second.ets | 2 +- js-joda/entry/src/main/ets/pages/sixth.ets | 2 +- js-joda/entry/src/main/ets/pages/third.ets | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/js-joda/entry/src/main/ets/pages/Index.ets b/js-joda/entry/src/main/ets/pages/Index.ets index 0153a4da..b52e85d8 100644 --- a/js-joda/entry/src/main/ets/pages/Index.ets +++ b/js-joda/entry/src/main/ets/pages/Index.ets @@ -58,7 +58,7 @@ struct Index { .backgroundColor(0x317aff) .width(240) .onClick(() => { - router.push({ url: 'pages/second' }) + router.pushUrl({ url: 'pages/second' }) }) } } diff --git a/js-joda/entry/src/main/ets/pages/fifth.ets b/js-joda/entry/src/main/ets/pages/fifth.ets index 08c54430..03e8a803 100644 --- a/js-joda/entry/src/main/ets/pages/fifth.ets +++ b/js-joda/entry/src/main/ets/pages/fifth.ets @@ -57,7 +57,7 @@ struct Fifth { .backgroundColor(0x317aff) .width(240) .onClick(() => { - router.push({ url: 'pages/sixth' }) + router.pushUrl({ url: 'pages/sixth' }) }) } } diff --git a/js-joda/entry/src/main/ets/pages/fourth.ets b/js-joda/entry/src/main/ets/pages/fourth.ets index 85251190..bf233d60 100644 --- a/js-joda/entry/src/main/ets/pages/fourth.ets +++ b/js-joda/entry/src/main/ets/pages/fourth.ets @@ -60,7 +60,7 @@ struct Fourth { .backgroundColor(0x317aff) .width(240) .onClick(() => { - router.push({ url: 'pages/fifth' }) + router.pushUrl({ url: 'pages/fifth' }) }) } } diff --git a/js-joda/entry/src/main/ets/pages/second.ets b/js-joda/entry/src/main/ets/pages/second.ets index 49240121..c643862f 100644 --- a/js-joda/entry/src/main/ets/pages/second.ets +++ b/js-joda/entry/src/main/ets/pages/second.ets @@ -72,7 +72,7 @@ struct Second { .backgroundColor(0x317aff) .width(240) .onClick(() => { - router.push({ url: 'pages/third' }) + router.pushUrl({ url: 'pages/third' }) }) } } diff --git a/js-joda/entry/src/main/ets/pages/sixth.ets b/js-joda/entry/src/main/ets/pages/sixth.ets index 1505eda2..3a0e11a6 100644 --- a/js-joda/entry/src/main/ets/pages/sixth.ets +++ b/js-joda/entry/src/main/ets/pages/sixth.ets @@ -71,7 +71,7 @@ function testFormatter(): string { // 按照英语格式进行日期时间格式化 2021-10-05T17:08:24+01:00[GMT] - const dateTimeFormatter:ESObject = DateTimeFormatter.ofPattern('EEE, dd MMM yyyy HH:mm:ss z').withLocale(Locale.ENGLISH); + const dateTimeFormatter = DateTimeFormatter.ofPattern('EEE, dd MMM yyyy HH:mm:ss z').withLocale(Locale.ENGLISH); const zoneDateTime = ZonedDateTime.parse('Tue, 05 Oct 2021 17:08:24 GMT', dateTimeFormatter); console.log(zoneDateTime.toString()); diff --git a/js-joda/entry/src/main/ets/pages/third.ets b/js-joda/entry/src/main/ets/pages/third.ets index 3346eb24..2391dc7e 100644 --- a/js-joda/entry/src/main/ets/pages/third.ets +++ b/js-joda/entry/src/main/ets/pages/third.ets @@ -56,7 +56,7 @@ struct Third { .backgroundColor(0x317aff) .width(240) .onClick(() => { - router.push({ url: 'pages/fourth' }) + router.pushUrl({ url: 'pages/fourth' }) }) } } -- Gitee