如何自动弹出窗口点击按钮?我结合SWAPY和编码,但找不到必要的编码。我自动Speech Filing System Tools for Speech Research
ngOnInit() {
componentHandler.upgradeAllRegistered();
this.hasWhat();
this.cartService.itemAdded$.subscribe( (id: any) => {
this.hasWhat();
});
this.cartService.itemRemoved$.subscribe( (id: any) => {
this.hasWhat();
});
}
hasWhat(){
this.progressService.hasWhat().then (
data => {
this.hasItems = data;
if(this.hasItems.hall==true){
this.hasHall=true
}
else{
this.hasHall=false
}
if(this.hasItems.caterer==true){
this.hasCaterer=true
}
else{
this.hasCaterer=false
}
});
}