📅  最后修改于: 2022-03-11 15:03:01.957000             🧑  作者: Mango
@HostListener('window:keyup.esc') onKeyUp() {
this._dialogRef.close(this.socios);
}
ngOnInit(): void {
this._dialogRef.disableClose = true;
this._dialogRef.backdropClick().subscribe(_ => {
this._dialogRef.close(this.socios);
})
}