From bf064dc419d207574a5d7fb95da197fe5fab17da Mon Sep 17 00:00:00 2001 From: kangliang <2352009235@qq.com> Date: Wed, 18 Jun 2025 16:25:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../02_Complete/entry/src/main/ets/pages/LoginPage.ets | 2 +- .../03_StartingPoint/entry/src/main/ets/pages/LoginPage.ets | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PageAndData02/02_Complete/entry/src/main/ets/pages/LoginPage.ets b/PageAndData02/02_Complete/entry/src/main/ets/pages/LoginPage.ets index ed7ca09..f2708c6 100644 --- a/PageAndData02/02_Complete/entry/src/main/ets/pages/LoginPage.ets +++ b/PageAndData02/02_Complete/entry/src/main/ets/pages/LoginPage.ets @@ -64,7 +64,7 @@ struct LoginPage { login(result: boolean): void { if (this.account === '' || this.password === '') { - promptAction.showToast({ + this.getUIContext().getPromptAction().showToast({ message: $r('app.string.input_empty_tips') }) } else { diff --git a/PageAndData03/03_StartingPoint/entry/src/main/ets/pages/LoginPage.ets b/PageAndData03/03_StartingPoint/entry/src/main/ets/pages/LoginPage.ets index ed7ca09..f2708c6 100644 --- a/PageAndData03/03_StartingPoint/entry/src/main/ets/pages/LoginPage.ets +++ b/PageAndData03/03_StartingPoint/entry/src/main/ets/pages/LoginPage.ets @@ -64,7 +64,7 @@ struct LoginPage { login(result: boolean): void { if (this.account === '' || this.password === '') { - promptAction.showToast({ + this.getUIContext().getPromptAction().showToast({ message: $r('app.string.input_empty_tips') }) } else { -- Gitee