From 16d58bc994498a8588abd8e420b5fcdca928245b Mon Sep 17 00:00:00 2001 From: WX1379483 Date: Tue, 6 May 2025 16:38:38 +0800 Subject: [PATCH] fixed --- entry/src/main/ets/view/CommonEventListComponent.ets | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entry/src/main/ets/view/CommonEventListComponent.ets b/entry/src/main/ets/view/CommonEventListComponent.ets index 17e636c..990f0e6 100644 --- a/entry/src/main/ets/view/CommonEventListComponent.ets +++ b/entry/src/main/ets/view/CommonEventListComponent.ets @@ -134,7 +134,7 @@ export default struct CommonEventListComponent { } showToast(toast: Resource): void { - promptAction.showToast({ + this.getUIContext().getPromptAction().showToast({ message: toast, duration: CommonConstants.AUTO_CLOSE_TIME, bottom: CommonConstants.TOAST_BOTTOM -- Gitee