mirror of
https://gitee.com/openharmony/applications_permission_manager
synced 2024-11-23 11:19:46 +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() {
|
build() {
|
||||||
Column() {
|
Column() {
|
||||||
Row() {
|
Row() {
|
||||||
|
@ -71,6 +71,10 @@ struct dialogPlusPage {
|
|||||||
this.privacyDialogController.open();
|
this.privacyDialogController.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aboutToDisappear() {
|
||||||
|
this.privacyDialogController = null;
|
||||||
|
}
|
||||||
|
|
||||||
onPageShow() {
|
onPageShow() {
|
||||||
this.isUpdate ++;
|
this.isUpdate ++;
|
||||||
}
|
}
|
||||||
|
@ -53,6 +53,10 @@ struct globalSwitch {
|
|||||||
aboutToAppear() {
|
aboutToAppear() {
|
||||||
this.privacyDialogController.open();
|
this.privacyDialogController.open();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aboutToDisappear() {
|
||||||
|
this.privacyDialogController = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@CustomDialog
|
@CustomDialog
|
||||||
|
@ -51,6 +51,10 @@ struct SecurityDialog {
|
|||||||
want = this.want;
|
want = this.want;
|
||||||
win = this.win;
|
win = this.win;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
aboutToDisappear() {
|
||||||
|
this.securityDialogController = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@CustomDialog
|
@CustomDialog
|
||||||
|
Loading…
Reference in New Issue
Block a user