Commit ff2fcffb authored by 李维's avatar 李维

dev commit

parent 2d021c88
......@@ -909,7 +909,7 @@ export class PlayComponent implements OnInit, OnDestroy {
this.g_data.contentObj = {};
this.g_formData = {};
}
this.initDefaultData();
this.initAudio();
this.initImg();
......@@ -933,7 +933,7 @@ export class PlayComponent implements OnInit, OnDestroy {
if ( Object.keys(this.g_formData).length===0 ) {
// console.log("Init default form data")
this.g_formData = defauleFormData;
}else if(!this.g_formData.sex){
}else if( !this.g_data.contentObj.dataArray || !this.g_data.contentObj.bgMusic){
this.g_formData = defauleFormData;
}
}
......
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