Browse Source

修复调用错误

master
453530270@qq.com 2 years ago
parent
commit
cd4faea3c5
  1. 19
      src/views/WhView.vue

19
src/views/WhView.vue

@ -375,21 +375,18 @@ export default {
this.libinfoData()
// websocket
this.getsckdata()
// this.getsckdata()
},
methods: {
//
sgrsStat() {
homeApi.allGroupNum({ type: 2 }).then(res => {
const tdata = res.data.returnData;
this.tdjg = tdata.day.noRepeatInNum
this.tmjg = tdata.month.noRepeatInNum
this.tyjg = tdata.year.noRepeatInNum
});
homeApi.tsgTrends().then(res => {
const tdata = res.data.data;
//
this.tdjg = tdata.today.incount
this.tmjg = tdata.month.incount
this.tyjg = tdata.year.incount
// //24
const sgdata = tdata.hour24
this.gktsg = sgdata[0].incount
@ -1086,8 +1083,8 @@ export default {
},
},
beforeUnmount() {
hws.close();
}
// beforeUnmount() {
// hws.close();
// }
}
</script>
Loading…
Cancel
Save