Angular Material :单击 Table 中的删除行后,背景中出现白色

Angular Material : White color appears in the Background after clicking on Delete Rows from the Table

对话框背景出现白色:

打字稿:配置-referrals.component.ts


    openDialog(action, obj) {
        this.globalService.configAvailability = null;
        obj.action = action;
        const dialogRef = this.dialog.open(AddConsultantComponent,{
          data: obj,
        });
        dialogRef.afterClosed().subscribe(result => {
          this.ngOnInit();
        });
      }

打字稿:配置-referrals.component.ts


    openDialog(action, obj) {
            this.globalService.configAvailability = null;
            obj.action = action;
            const dialogRef = this.dialog.open(AddConsultantComponent,{
              data: obj,
              scrollStrategy: new NoopScrollStrategy()
            });
            dialogRef.afterClosed().subscribe(result => {
              this.ngOnInit();
            });
          }