!93 jscrash问题汇总--master

Merge pull request !93 from zhouhongli2023/master
This commit is contained in:
openharmony_ci
2024-03-04 07:34:28 +00:00
committed by Gitee
3 changed files with 9 additions and 0 deletions
@@ -53,6 +53,9 @@ export default class MainAbility extends Ability {
onDestroy() {
HiLog.i(TAG, 'Ability onDestroy');
if (globalThis.DataWorker == null || globalThis.DataWorker == undefined) {
return;
}
globalThis.DataWorker.close();
}
}
@@ -757,6 +757,9 @@ export default class ConversationListController {
}
// If multiple options are selected, the system responds to CheckBox.
if (this.isMultipleSelectState) {
if (this.messageList[index] == null || this.messageList[index] == undefined) {
return;
}
this.messageList[index].isCbChecked = !this.messageList[index].isCbChecked;
this.setConversationCheckAll(common.int.CHECKBOX_SELECT_UNKNOWN);
return;
@@ -270,6 +270,9 @@ export default class ReceiveController {
}
this.selectContacts.push(curItem);
this.contactsTemp = this.contactsTemp.filter((item) => {
if (item.telephone == undefined || curItem.telephone == undefined) {
return;
}
return item.telephone != curItem.telephone
});
this.contacts.splice(index, 1);