From 279153c8fe809aebb1a2227ae5bd9c9a79e2c359 Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期三, 26 六月 2024 17:39:16 +0800
Subject: [PATCH] qxtj

---
 src/views/index.vue |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index aa18226..a31432c 100644
--- a/src/views/index.vue
+++ b/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 = [

--
Gitblit v1.8.0