diff --git a/entry/src/main/ets/pages/GraphicCreationPage.ets b/entry/src/main/ets/pages/GraphicCreationPage.ets index d3be547f9e9644bd161605e77d5d1346ab55d7a8..1644026e566ce1de8007c7d0c7b3ad560824b32e 100644 --- a/entry/src/main/ets/pages/GraphicCreationPage.ets +++ b/entry/src/main/ets/pages/GraphicCreationPage.ets @@ -160,7 +160,7 @@ struct GraphicCreationPage { }) .onClick(() => { if (this.imageInfoArr.length === CommonConstants.LIMIT_PICKER_NUM) { - promptAction.showToast({ + this.getUIContext().getPromptAction().showToast({ message: $r('app.string.toast_picker_limit'), duration: DataUtils.fromResToNumber($r('app.float.show_DELAY_TIME')), }); @@ -318,7 +318,7 @@ struct GraphicCreationPage { Logger.info(this.tag, `doInsertPicture bufferType: ${bufferType}}`); if (bufferType === CommonConstants.BUFFER_TYPE) { if (this.imageInfoArr.length === CommonConstants.LIMIT_PICKER_NUM) { - promptAction.showToast({ + this.getUIContext().getPromptAction().showToast({ message: $r('app.string.toast_picker_limit'), duration: DataUtils.fromResToNumber($r('app.float.show_DELAY_TIME')), });