diff --git a/features/src/main/ets/components/NoteContentComp.ets b/features/src/main/ets/components/NoteContentComp.ets index 8f4185aaf7af5c421b864ed24315136942d7ce18..9654e7cdddd44041023ab7a9829b1f2f67ff8e95 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) => {