From 547e640234e8193900097b37a07f0ca8ca8aac1e Mon Sep 17 00:00:00 2001 From: chenJinxu <2183691628@qq.com> Date: Tue, 26 Dec 2023 10:11:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=8F=98=E5=8C=96=E6=9B=B4=E6=96=B0echart?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/EchartBox.vue | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/components/EchartBox.vue b/src/components/EchartBox.vue index 532308d..5d351f9 100644 --- a/src/components/EchartBox.vue +++ b/src/components/EchartBox.vue @@ -78,6 +78,13 @@ export default { echart: null }; }, + watch: { + options() { + this.$nextTick(() => { + this.initEchart(); + }); + } + }, computed: {}, created() {}, mounted() {