diff --git a/entry/src/main/ets/view/CommonEventListComponent.ets b/entry/src/main/ets/view/CommonEventListComponent.ets index 17e636c906b18854606ba1fb0dce9f3a9163b6d9..990f0e62437fe3f74a69e854bd0e488794c952a2 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