Merge pull request !206 from wangzhiyusss/master
This commit is contained in:
openharmony_ci
2023-05-13 02:41:57 +00:00
committed by Gitee
2 changed files with 8 additions and 5 deletions
@@ -342,9 +342,6 @@ export struct NoteContentCompPortrait {
aboutToDisappear(): void {
this.isClickBack = true
clearInterval(time_id)
setTimeout(() => {
LogUtil.info(TAG, "wait save cotext")
}, 50)
NoteUtil.refreshAll()
LogUtil.info(TAG, "aboutToDisappear")
}
@@ -513,7 +510,10 @@ export struct ToolBarComp {
LogUtil.info(TAG, "back, clearInterval time_id : " + time_id)
clearInterval(time_id)
}
router.back()
setTimeout(() => {
LogUtil.info(TAG, "wait save cotext")
router.back()
}, 50)
NoteUtil.refreshAll()
} catch (error) {
LogUtil.info(TAG, 'back error')
@@ -762,4 +762,4 @@ struct NoteDataMoveItemCompMenu {
.height(56)
.visibility(FolderUtil.isFolderMoveIn(this.folderItem) ? Visibility.Visible : Visibility.None)
}
}
}
@@ -134,5 +134,8 @@ export struct MyNoteHomeComp {
// 退出键盘
// @ts-ignore
inputMethod.getController().stopInputSession();
setTimeout(() => {
LogUtil.info(this.TAG, "wait save cotext")
}, 50)
}
}