Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #8 from pixcai/master
Browse files Browse the repository at this point in the history
修复数字除零错误
  • Loading branch information
gaoyue1989 authored May 4, 2018
2 parents 8aec1b4 + c0670ab commit 7ff92da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vue-gopub/src/pages/home/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,10 @@
this.totalmem=data.totalmen;
this.totalproject=data.totalproject;
this.totalpub=data.totalpub;
this.totalpubsuccess=(data.totalpubsuccess/data.totalpub).toFixed(2) *100
this.totalpubsuccess = data.totalpubsuccess;
if (data.totalpub) {
this.totalpubsuccess=(this.totalpubsuccess/data.totalpub).toFixed(2)*100;
}
this.hostsum=data.hostsum;
}).catch(() => {
})
Expand Down

0 comments on commit 7ff92da

Please sign in to comment.