qinxianzhangyao
2024-06-27 f68fa3bc5fc0a286c88d82ee6eb95e8ad6be0d16
src/views/index.vue
@@ -189,7 +189,17 @@
      getPieChart().then((response) => {
        if (response.data) {
          if (response.data.tjdj.length === 0) {
          if(response.data.tjdj == 0){
            this.PieChart = []
            this.PieChart = [
              {
                "name": "体检登记人数分布",
                "count": 1,
                "value": 10
              },
            ]
          }else if (response.data.tjdj.length === 0) {
            this.PieChart = []
            this.PieChart = [