|
|
@@ -321,10 +321,9 @@ export default {
|
|
|
},
|
|
|
userStats(){
|
|
|
userStats().then(req => {
|
|
|
- this.totalUsers=req.data.totalUsers;
|
|
|
- this.businessUsers=req.data.businessUsers;
|
|
|
- this.civilUsers=req.data.civilUsers;
|
|
|
- this.industryUsers=req.data.industryUsers;
|
|
|
+ this.businessUsers = req.data.find(item => item.name === "business").value;
|
|
|
+ this.civilUsers = req.data.find(item => item.name === "civil").value;
|
|
|
+ this.industryUsers = req.data.find(item => item.name === "industry").value;
|
|
|
this.chart();
|
|
|
})
|
|
|
},
|