From bce08410a425b31f1c07487fb3c2eac2d31cb339 Mon Sep 17 00:00:00 2001 From: yuandongping Date: Mon, 23 Jun 2025 18:46:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Djscrash?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yuandongping --- features/src/main/ets/components/NoteContentComp.ets | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/features/src/main/ets/components/NoteContentComp.ets b/features/src/main/ets/components/NoteContentComp.ets index 8f4185a..9654e7c 100644 --- a/features/src/main/ets/components/NoteContentComp.ets +++ b/features/src/main/ets/components/NoteContentComp.ets @@ -157,8 +157,13 @@ export struct NoteContentComp { }, callbackImagePath: (imgName) => { // updata note image - LogUtil.info(TAG, 'note imgName is:' + imgName); - this.selectedNoteData.content_img = imgName; + try { + LogUtil.info(TAG, 'note imgName is:' + imgName); + this.selectedNoteData.content_img = imgName; + LogUtil.info(TAG, 'set content_img success'); + } catch (error) { + LogUtil.error(TAG, 'callbackImagePath error: ' + JSON.stringify(error)); + } }, callbackhtmlSave: (html) => { -- Gitee