From 3662019a02d0d3d9d5ba4f176ab55297e0cbd53b Mon Sep 17 00:00:00 2001
From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com>
Date: 星期二, 30 四月 2024 17:38:48 +0800
Subject: [PATCH] qxtj

---
 src/views/index.vue |   21 ++++++++++++++++-----
 vue.config.js       |    4 ++--
 2 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index bc94f0d..aa18226 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -190,6 +190,7 @@
         if (response.data) {
 
           if (response.data.tjdj.length === 0) {
+
             this.PieChart = []
             this.PieChart = [
               {
@@ -245,7 +246,17 @@
               }]
           })
 
-          if (response.data.tjyc.length === 0) {
+          if(response.data.tjyc == 0){
+            this.PieChart2 = []
+            this.PieChart2 = [
+              {
+                "name": "浣撴缁撴灉寮傚父浜烘暟鍒嗗竷",
+                "count": 1,
+                "value": 10
+              },
+
+            ]
+          }else if (response.data.tjyc.length === 0) {
             this.PieChart2 = []
             this.PieChart2 = [
               {
@@ -302,10 +313,10 @@
         }
 
 
-        // window.onresize = function () {
-        //   myChart2.resize()
-        //   myChart3.resize()
-        // }
+        window.onresize = function () {
+          myChart2.resize()
+          myChart3.resize()
+        }
         this.loading = false;
       });
 
diff --git a/vue.config.js b/vue.config.js
index 2f2ec9c..5a1d21f 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -53,9 +53,9 @@
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
         //target: `https://ltpeis.xaltjdkj.cn:5501/prod-api/getInfo`,
-        target: `http://192.168.1.113:5011`,
+        // target: `http://192.168.1.113:5011`,
         // // target: `http://192.168.0.99:8080/ltkj-admin`,
-        // target: `https://ltpeis.xaltjdkj.cn:5011/ltkj-admin`,
+        target: `https://ltpeis.xaltjdkj.cn:5011/ltkj-admin`,
         // target: `http://10.168.0.9:5011`,
         changeOrigin: true,
         pathRewrite: {

--
Gitblit v1.8.0