Commit af882aff authored by liujiangnan's avatar liujiangnan

fix: 编辑问题

parent 5c338051
import {Component, ElementRef, ViewChild, OnInit, Input, OnDestroy, HostListener} from '@angular/core';
import {Component, ElementRef, ApplicationRef,ChangeDetectorRef,ViewChild, OnInit, Input, OnDestroy, HostListener} from '@angular/core';
import {
Label,
......@@ -32,7 +32,9 @@ export class PlayComponent implements OnInit, OnDestroy {
// 数据
data;
constructor(private appRef: ApplicationRef,
private changeDetectorRef: ChangeDetectorRef) {
}
ngOnInit() {
......@@ -55,6 +57,8 @@ export class PlayComponent implements OnInit, OnDestroy {
window["air"].hideAirClassLoading(this.saveKey, this.data);
}
this.refresh();
}, this.saveKey);
}
......@@ -141,6 +145,10 @@ export class PlayComponent implements OnInit, OnDestroy {
}
}
refresh() {
setTimeout(() => {
this.appRef.tick();
}, 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