mirror of
https://github.com/openharmony/applications_notes.git
synced 2026-07-18 18:24:27 -04:00
!106 #I5UI1A 每隔3秒保存一次,当内容很大时出现anr
Merge pull request !106 from tangyiqiang/master
This commit is contained in:
@@ -66,6 +66,10 @@ export struct NoteContent {
|
||||
|
||||
callbackScheduledSave: (html) => {
|
||||
LogUtil.info(TAG, 'callbackScheduledSave')
|
||||
if (this.selectedNoteData.content_text == html) {
|
||||
LogUtil.info(TAG, 'callbackScheduledSave the same value return')
|
||||
return;
|
||||
}
|
||||
this.selectedNoteData.content_text = html
|
||||
this.selectedNoteData.modified_time = new Date().getTime()
|
||||
// updata note image
|
||||
|
||||
@@ -94,6 +94,10 @@ export struct NoteContentComp {
|
||||
|
||||
callbackScheduledSave: (html) => {
|
||||
LogUtil.info(TAG, 'callbackScheduledSave')
|
||||
if (this.selectedNoteData.content_text == html) {
|
||||
LogUtil.info(TAG, 'callbackScheduledSave the same value return')
|
||||
return;
|
||||
}
|
||||
this.selectedNoteData.content_text = html
|
||||
this.selectedNoteData.modified_time = new Date().getTime()
|
||||
// updata note image
|
||||
|
||||
@@ -73,6 +73,10 @@ export struct NoteContentCompPortrait {
|
||||
|
||||
callbackScheduledSave: (html) => {
|
||||
LogUtil.info(TAG, 'callbackScheduledSave')
|
||||
if (this.selectedNoteData.content_text == html) {
|
||||
LogUtil.info(TAG, 'callbackScheduledSave the same value return')
|
||||
return;
|
||||
}
|
||||
this.selectedNoteData.content_text = html
|
||||
this.selectedNoteData.modified_time = new Date().getTime()
|
||||
// updata note image
|
||||
|
||||
Reference in New Issue
Block a user