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
commit 409f06c2bd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 8 additions and 5 deletions

View File

@ -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)
}
}
}

View File

@ -134,5 +134,8 @@ export struct MyNoteHomeComp {
// 退出键盘
// @ts-ignore
inputMethod.getController().stopInputSession();
setTimeout(() => {
LogUtil.info(this.TAG, "wait save cotext")
}, 50)
}
}