Commit b029add2 authored by Chen Jiping's avatar Chen Jiping

增加缺省数据处理

parent d3ba6a76
......@@ -694,8 +694,23 @@ export function getDefaultExercisesItem() {
text: "This is apple",
pic_url: "",
audio_url: "",
index: 0
index: 0,
letters:[]
}
exercises.letters.push(getDefaultLetter())
return exercises;
}
\ No newline at end of file
}
/**
* 获取默认的字母
*/
export function getDefaultLetter(){
let letter = {
val:'This is apple',
isColor:'0'
};
return letter;
}
\ No newline at end of file
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