From d6459bf4f84a7d1b7f9a28ecb13f85d7ae5844c5 Mon Sep 17 00:00:00 2001 From: liujiangnan <695541723@qq.com> Date: Wed, 18 Sep 2019 10:11:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B1=95=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/play/play.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/play/play.component.ts b/src/app/play/play.component.ts index 73991a1..6e5b40f 100644 --- a/src/app/play/play.component.ts +++ b/src/app/play/play.component.ts @@ -5,6 +5,7 @@ OnChanges, OnInit, AfterViewInit, ElementRef, ViewChild, + ApplicationRef } from '@angular/core'; import * as _ from 'lodash'; @@ -35,7 +36,7 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni curItemUrl = ''; curEvt; - constructor() { + constructor(private appRef: ApplicationRef) { } range(start, end) { @@ -46,7 +47,8 @@ export class PlayComponent implements OnInit, OnDestroy, OnChanges, AfterViewIni let _this = this; (<any>window).courseware.getData(function(data){ if(data){ - _this.data.contentObj.titleObj = data; + _this.data.contentObj.titleObj.content = data.content; + _this.appRef.tick(); } }); -- 2.21.0