!106 CustomDialogController使用后置空

Merge pull request !106 from Ryan Zhu/master
This commit is contained in:
openharmony_ci 2023-12-24 13:26:42 +00:00 committed by Gitee
commit fec42c5220
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 9 additions and 0 deletions

View File

@ -81,6 +81,10 @@ export default struct IncomingCom {
this.getBtnList();
}
aboutToDisappear() {
this.msgDialogController = null;
}
/**
* send Message slotId : card slot, destinationHost : accountNumber ,content: content
*

View File

@ -175,6 +175,7 @@ struct Index {
this.mdListener?.off('change', this.isBreakpointMD);
this.lgListener?.off('change', this.isBreakpointLG);
removeAirPlaneModeListener();
this.airplaneModeDialogController = null;
}
onBackPress() {

View File

@ -69,6 +69,10 @@ export default struct listItem {
};
};
aboutToDisappear() {
this.recordTypeDialog = null;
}
build() {
Column() {
Row() {