fuliqi
2024-09-20 f69b7ff73aab2174cb17c7c3e4e716c6e5170e56
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>