From 1752308d2bc5d149915c421c9593bffab3df5788 Mon Sep 17 00:00:00 2001 From: douji Date: Tue, 13 May 2025 14:35:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=9F=E5=BC=83api=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/pages/GraphicCreationPage.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entry/src/main/ets/pages/GraphicCreationPage.ets b/entry/src/main/ets/pages/GraphicCreationPage.ets index d3be547..1644026 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')), }); -- Gitee