From d95b36a88357d018f76d926e9074c521eb8335a7 Mon Sep 17 00:00:00 2001
From: lohir <3399054449@qq.com>
Date: 星期三, 23 十月 2024 11:24:07 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/views/screen/components/subheading.vue |   21 +++++++++------------
 1 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/src/views/screen/components/subheading.vue b/src/views/screen/components/subheading.vue
index d387fd1..9935174 100644
--- a/src/views/screen/components/subheading.vue
+++ b/src/views/screen/components/subheading.vue
@@ -88,7 +88,6 @@
           }
         ]
       }
-
       myAnnular.setOption(option)
     },
 
@@ -109,16 +108,15 @@
     })
   },
   watch: {
-    isData(){
-      this.getW()
-      this.$nextTick(() => {
-        this.initChart(
-          this.isData.value1,
-          this.isData.value2,
-          this.isData.color
-        )
-      })
-    }
+    isData: {
+      handler(newVal, oldVal) {
+        this.getW()
+        this.$nextTick(() => {
+          this.initChart(newVal.value1, newVal.value2, newVal.color);
+        });
+      },
+      deep: true
+    },
   }
 }
 </script>
@@ -150,7 +148,6 @@
 
     .title {
       text-align: center;
-      font-size: 14px;
       color: #dcf8ff;
       white-space: nowrap;
       overflow: hidden;

--
Gitblit v1.8.0