From 7e3fee3cbe3f3d686c06d997823f9e5f24de1b64 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 18 九月 2024 17:17:19 +0800 Subject: [PATCH] 大屏优化 --- src/views/screen/components/subheading.vue | 20 +++++++++----------- 1 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/views/screen/components/subheading.vue b/src/views/screen/components/subheading.vue index d387fd1..bca2bc0 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> -- Gitblit v1.8.0