Commit ebb35f66 authored by Chen Jiping's avatar Chen Jiping

增加缺省值

parent 931935f3
......@@ -483,7 +483,10 @@ export class PlayComponent implements OnInit, OnDestroy {
if(!this.data.title){
this.data.title = {};
}
this.data.title.val1 = 'C';
this.data.title.val2 = 'Write, listen and number';
if(!this.data.exercisesArr){
this.data.exercisesArr = [];
......@@ -503,6 +506,8 @@ export class PlayComponent implements OnInit, OnDestroy {
}
}
}
/**
* 获取默认练习题
*/
......@@ -516,7 +521,16 @@ export class PlayComponent implements OnInit, OnDestroy {
val:'',
audioUrl:''
},
letters:[]
letters:[{
val:'Li',
isFill:'0'
},{
val:'o',
isFill:'0'
},{
val:'n',
isFill:'0'
}]
};
return exercises;
......
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