mirror of
https://gitee.com/openharmony/applications_permission_manager
synced 2024-11-23 03:09:41 +00:00
CustomDialogController使用后置空
Signed-off-by: 赵鹏 <2645604041@qq.com>
This commit is contained in:
parent
544fd99d77
commit
da094810d6
@ -418,6 +418,10 @@ struct applicationItem {
|
||||
}
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
this.privacyDialogController = null;
|
||||
}
|
||||
|
||||
build() {
|
||||
Column() {
|
||||
Row() {
|
||||
|
@ -71,6 +71,10 @@ struct dialogPlusPage {
|
||||
this.privacyDialogController.open();
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
this.privacyDialogController = null;
|
||||
}
|
||||
|
||||
onPageShow() {
|
||||
this.isUpdate ++;
|
||||
}
|
||||
|
@ -53,6 +53,10 @@ struct globalSwitch {
|
||||
aboutToAppear() {
|
||||
this.privacyDialogController.open();
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
this.privacyDialogController = null;
|
||||
}
|
||||
}
|
||||
|
||||
@CustomDialog
|
||||
|
@ -51,6 +51,10 @@ struct SecurityDialog {
|
||||
want = this.want;
|
||||
win = this.win;
|
||||
}
|
||||
|
||||
aboutToDisappear() {
|
||||
this.securityDialogController = null;
|
||||
}
|
||||
}
|
||||
|
||||
@CustomDialog
|
||||
|
Loading…
Reference in New Issue
Block a user