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 { import {
Label, Label,
...@@ -32,7 +32,9 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -32,7 +32,9 @@ export class PlayComponent implements OnInit, OnDestroy {
// 数据 // 数据
data; data;
constructor(private appRef: ApplicationRef,
private changeDetectorRef: ChangeDetectorRef) {
}
ngOnInit() { ngOnInit() {
...@@ -55,6 +57,8 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -55,6 +57,8 @@ export class PlayComponent implements OnInit, OnDestroy {
window["air"].hideAirClassLoading(this.saveKey, this.data); window["air"].hideAirClassLoading(this.saveKey, this.data);
} }
this.refresh();
}, this.saveKey); }, this.saveKey);
} }
...@@ -141,6 +145,10 @@ export class PlayComponent implements OnInit, OnDestroy { ...@@ -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