From 861d7da24bad5de2271ddbf88444b1691725670d Mon Sep 17 00:00:00 2001 From: "OWNEROR-41FNVD0\\lenovo" Date: Tue, 13 May 2025 15:04:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=9F=E5=BC=83=E6=8E=A5=E5=8F=A3=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/entryability/EntryAbility.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entry/src/main/ets/entryability/EntryAbility.ets b/entry/src/main/ets/entryability/EntryAbility.ets index 846d460..08fd29e 100644 --- a/entry/src/main/ets/entryability/EntryAbility.ets +++ b/entry/src/main/ets/entryability/EntryAbility.ets @@ -28,7 +28,7 @@ export default class EntryAbility extends UIAbility { if (this.uiContext && shortCutKey && shortCutKey === 'CompanyPage') { let router: Router = this.uiContext.getRouter(); - router.pushUrl({ + this.uiContext.getRouter().pushUrl({ url: 'pages/GoCompany' }).catch((err: BusinessError) => { hilog.error(0x0000, 'testTag', `Failed to push url. Code is ${err.code},message is ${err.message}`); @@ -36,7 +36,7 @@ export default class EntryAbility extends UIAbility { } if (this.uiContext && shortCutKey && shortCutKey === 'HousePage') { let router: Router = this.uiContext.getRouter(); - router.pushUrl({ + this.uiContext.getRouter().pushUrl({ url: 'pages/GoHouse' }).catch((err: BusinessError) => { hilog.error(0x0000, 'testTag', `Failed to push url. Code is ${err.code},message is ${err.message}`); -- Gitee