From 4c03db2f0d6b4320e670b770f4c1e252809303a3 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期三, 18 九月 2024 01:00:51 +0800 Subject: [PATCH] 大屏数据对接2 --- src/views/screen/components/subheading.vue | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/views/screen/components/subheading.vue b/src/views/screen/components/subheading.vue index 3af62bf..d387fd1 100644 --- a/src/views/screen/components/subheading.vue +++ b/src/views/screen/components/subheading.vue @@ -107,6 +107,18 @@ this.isData.color ) }) + }, + watch: { + isData(){ + this.getW() + this.$nextTick(() => { + this.initChart( + this.isData.value1, + this.isData.value2, + this.isData.color + ) + }) + } } } </script> -- Gitblit v1.8.0