!280 修复备忘录jscrash

Merge pull request !280 from 张宏/master
This commit is contained in:
openharmony_ci 2024-08-06 12:43:58 +00:00 committed by Gitee
commit 0b1f8cb0d4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -519,7 +519,7 @@ export struct ToolBarComp {
}
this.refreshFlag = (this.refreshFlag == 0 ? 1 : 0)
this.selectedNoteData = NoteUtil.getFirstNoteData(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid)
this.controllerShow.runJavaScript("RICH_EDITOR.setHtml('" + this.selectedNoteData.content_text + "')")
this.controllerShow.runJavaScript("RICH_EDITOR.setHtml('" + this.selectedNoteData.content_text! + "')")
this.chooseNote = false
// save continue data
let continueNote: string = JSON.stringify(this.selectedNoteData.toNoteObject())