修改删除笔记列表未刷新问题

Signed-off-by: nobbo <gaoshang22@huawei.com>
This commit is contained in:
nobbo 2022-11-29 20:31:08 +08:00
parent b6400a7191
commit 52f99098e0
2 changed files with 4 additions and 0 deletions

View File

@ -400,6 +400,7 @@ export struct ToolBarComp {
clearInterval(time_id)
}
router.back()
NoteUtil.refreshAll()
})
if (this.editModel == false) {

View File

@ -829,6 +829,7 @@ export struct OperateNoteCompForPortrait {
this.longpress = false
this.refreshFlag = (this.refreshFlag == 0 ? 1 : 0)
NoteUtil.unsetAllNotesChecked(this.CheckedNoteArray)
NoteUtil.refreshAll()
}
noteDataDeleteDialogCtlBottom: CustomDialogController = new CustomDialogController({
@ -865,6 +866,7 @@ export struct OperateNoteCompForPortrait {
let continueNote: string = JSON.stringify(this.selectedNoteData.toNoteObject())
AppStorage.SetOrCreate<string>('ContinueNote', continueNote)
LogUtil.info(TAG, "OperateNoteCompForPortrait, set continue note success")
NoteUtil.refreshAll()
}
build() {
@ -983,6 +985,7 @@ export struct OperateNoteCompForPortrait {
NoteUtil.unsetAllNotesChecked(this.CheckedNoteArray)
this.refreshFlag = (this.refreshFlag == 0 ? 1 : 0)
AppStorage.SetOrCreate('isUpdate', true)
NoteUtil.refreshAll()
})
Text($r("app.string.recover"))
.fontSize(10)