Commit f06ddbda by 蒋勇

null judge

parent a0e3f1d3
...@@ -101,8 +101,11 @@ ...@@ -101,8 +101,11 @@
arrstrs.forEach((item)=>{ arrstrs.forEach((item)=>{
if(item && item!=""){ if(item && item!=""){
let it=JSON.parse(item); let it=JSON.parse(item);
let trackItem={"trackDate":`${it.dateStr} ${it.yw}`,"trackContent":`${it.timeStr} ${it.content}`}; if(it){
this.trackRecords.push(trackItem); let trackItem={"trackDate":`${it.dateStr} ${it.yw}`,"trackContent":`${it.timeStr} ${it.content}`};
this.trackRecords.push(trackItem);
}
} }
}) })
......
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