insert the same value return

Signed-off-by: yiqiang <tangyiqiang@huawei.com>
This commit is contained in:
yiqiang
2022-10-08 16:44:12 +08:00
parent fc451344a3
commit 2f1782b98a
3 changed files with 12 additions and 0 deletions
@@ -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