Commit 327937c8 by kyle

我的分享如果没有资料就置为0

parent 3b24dbae
...@@ -105,6 +105,11 @@ ...@@ -105,6 +105,11 @@
console.log(res) console.log(res)
if(res['success']){ if(res['success']){
this.coursesCountInfos = res['data'] ? res['data'] : this.coursesCountInfos; this.coursesCountInfos = res['data'] ? res['data'] : this.coursesCountInfos;
Object.keys(this.coursesCountInfos).forEach((item)=>{
if(!this.coursesCountInfos[item]){
this.coursesCountInfos[item] = 0;
}
})
}else{ }else{
this.coursesCountInfos = { this.coursesCountInfos = {
shareFrequencyMonth:0, shareFrequencyMonth:0,
......
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