Commit af778440 authored by liujiaxin's avatar liujiaxin

11

parent 8cc8e1fe
...@@ -109,7 +109,7 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi ...@@ -109,7 +109,7 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi
} }
ngOnInit() { ngOnInit() {
window['lrc'] = this; window['lrc'] = this;
console.log('this.LRCData 1', this.LRCData); // console.log('this.LRCData 1', this.LRCData);
if (!this.LRCData) { if (!this.LRCData) {
this.LRCData = {}; this.LRCData = {};
} }
...@@ -229,7 +229,7 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi ...@@ -229,7 +229,7 @@ export class LrcEditorComponent implements OnInit, OnChanges, OnDestroy, AfterVi
// console.log('ngOnChanges', JSON.stringify(value)); // this.ngOnInit(); // console.log('ngOnChanges', JSON.stringify(value)); // this.ngOnInit();
} }
ngOnDestroy(): void { ngOnDestroy(): void {
console.log('destory') // console.log('destory')
this.audioPlayBarPositionSub && this.audioPlayBarPositionSub.unsubscribe(); this.audioPlayBarPositionSub && this.audioPlayBarPositionSub.unsubscribe();
this.audioDataLoadedSub && this.audioDataLoadedSub.unsubscribe(); this.audioDataLoadedSub && this.audioDataLoadedSub.unsubscribe();
this.audioPlayTimestampSub && this.audioPlayTimestampSub.unsubscribe(); this.audioPlayTimestampSub && this.audioPlayTimestampSub.unsubscribe();
......
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