Commit e671f16a authored by liujiaxin's avatar liujiaxin

fix: change refresh

parent 2f4a1e6d
......@@ -122,6 +122,7 @@ export class PlayComponent implements OnInit {
});
el.classList.add('selected');
}
this.refresh();
}
selectGroup(gIdx, evt) {
......@@ -170,11 +171,14 @@ export class PlayComponent implements OnInit {
this.CURRENT_ITEM_EL.classList.add('infinite');
this.CURRENT_ITEM_EL.classList.add('animated');
}
this.refresh();
}
refresh() {
setTimeout(() => {
this.appRef.tick();
this.changeDetectorRef.markForCheck();
this.changeDetectorRef.detectChanges();
}, 1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment