diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 67aaea6d1a42a907376284a289f82ab2efacfe15..f79854733786ae9b0c9827dda1cf232efa6f53e2 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -118,7 +118,7 @@ function buildActionTips(params: ActionParams) { .height(12) } .onClick(() => { - promptAction.showToast({ + getUIContext.getPromptAction().showToast({ message: $r('app.string.after'), duration: 2000, showMode: promptAction.ToastShowMode.DEFAULT,