mirror of
https://gitee.com/openharmony/applications_notes
synced 2024-11-23 15:39:50 +00:00
commit
7120fe0831
@ -192,7 +192,7 @@ export struct NoteContent {
|
||||
.onPageEnd((e) => {
|
||||
if (this.dpi <= 240) {
|
||||
this.controllerShow.runJavaScript({ script: "changeSizeToRk()" })
|
||||
} else if (this.dpi >= 320 && this.dpi > 240) {
|
||||
} else if (this.dpi <= 320 && this.dpi > 240) {
|
||||
this.controllerShow.runJavaScript({ script: "changeSizeToPhone()" })
|
||||
} else {
|
||||
this.controllerShow.runJavaScript({ script: "changeSizeToTablet()" })
|
||||
@ -250,6 +250,8 @@ export struct NoteContent {
|
||||
}
|
||||
|
||||
aboutToDisappear(): void {
|
||||
NoteUtil.refreshAll()
|
||||
AppStorage.Set("refreshCurrentNote",true)
|
||||
clearInterval(timeID)
|
||||
LogUtil.info(TAG, "aboutToDisappear")
|
||||
}
|
||||
@ -287,6 +289,7 @@ export struct ToolBarComp {
|
||||
LogUtil.info(TAG, "zoom, clearInterval timeID : " + timeID)
|
||||
clearInterval(timeID)
|
||||
}
|
||||
AppStorage.Set("refreshCurrentNote",true)
|
||||
router.back()
|
||||
NoteUtil.refreshAll()
|
||||
})
|
||||
|
@ -230,7 +230,7 @@ export struct NoteContentComp {
|
||||
.onPageEnd((e) => {
|
||||
if (this.dpi <= 240) {
|
||||
this.controllerShow.runJavaScript({ script: "changeSizeToRk()" })
|
||||
} else if (this.dpi >= 320 && this.dpi > 240) {
|
||||
} else if (this.dpi <= 320 && this.dpi > 240) {
|
||||
this.controllerShow.runJavaScript({ script: "changeSizeToPhone()" })
|
||||
} else {
|
||||
this.controllerShow.runJavaScript({ script: "changeSizeToTablet()" })
|
||||
|
@ -243,7 +243,7 @@ export struct NoteContentCompPortrait {
|
||||
.onPageEnd((e) => {
|
||||
if (this.dpi <= 240) {
|
||||
this.controllerShow.runJavaScript({ script: "changeSizeToRk()" })
|
||||
} else if (this.dpi >= 320 && this.dpi > 240) {
|
||||
} else if (this.dpi <= 320 && this.dpi > 240) {
|
||||
this.controllerShow.runJavaScript({ script: "changeSizeToPhone()" })
|
||||
} else {
|
||||
this.controllerShow.runJavaScript({ script: "changeSizeToTablet()" })
|
||||
@ -301,6 +301,7 @@ export struct NoteContentCompPortrait {
|
||||
}
|
||||
|
||||
aboutToDisappear(): void {
|
||||
NoteUtil.refreshAll()
|
||||
clearInterval(time_id)
|
||||
LogUtil.info(TAG, "aboutToDisappear")
|
||||
}
|
||||
@ -580,6 +581,7 @@ export struct DeleteNoteComp {
|
||||
let predicates_note = RdbStoreUtil.getRdbPredicates(TableName.NoteTable)
|
||||
predicates_note.equalTo(NoteTableColumn.Uuid, this.selectedNoteData.uuid)
|
||||
RdbStoreUtil.delete(predicates_note, null)
|
||||
NoteUtil.refreshAll()
|
||||
routePage()
|
||||
}
|
||||
AppStorage.SetOrCreate('isUpdate', false)
|
||||
|
Loading…
Reference in New Issue
Block a user