修复jscrash

Signed-off-by: zhanghong <zhanghong121@huawei.com>
This commit is contained in:
zhanghong
2024-11-28 17:03:18 +08:00
parent 16543748bc
commit 9937dc3964
3 changed files with 3 additions and 3 deletions
@@ -647,7 +647,7 @@ export struct ToolBarComp {
this.selectedNoteData = NoteUtil.getFirstNoteData(AppStorage.Get('AllNoteArray'), this.selectedFolderData.uuid)!;
this.controllerShow.runJavaScript(
"RICH_EDITOR.setHtml('" + this.selectedNoteData.content_text + "')"
"RICH_EDITOR.setHtml('" + this.selectedNoteData!.content_text + "')"
)
// save continue data
let continueNote: string = JSON.stringify(this.selectedNoteData.toNoteObject())
+2 -1
View File
@@ -1,5 +1,6 @@
{
"modelVersion": "5.0.0",
"hvigorVersion": "3.0.2",
"dependencies": {
"@ohos/hvigor-ohos-plugin": "3.0.2"
}
}
-1
View File
@@ -1,5 +1,4 @@
{
"modelVersion": "5.0.0",
"license": "ISC",
"devDependencies": {
"@ohos/hypium": "1.0.6"