From b7a30776280c63ff7e46ee7f67a3cf1b13ce97a7 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Tue, 9 Sep 2025 13:43:37 +0800 Subject: [PATCH] fix: Ecarts rendering error (#4009) --- ui/src/components/markdown/EchartsRander.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/src/components/markdown/EchartsRander.vue b/ui/src/components/markdown/EchartsRander.vue index 1f1f2da79..760b470d0 100644 --- a/ui/src/components/markdown/EchartsRander.vue +++ b/ui/src/components/markdown/EchartsRander.vue @@ -12,7 +12,7 @@ const chartsRef = ref() const style = ref({ height: '220px', - width: '100%' + width: '100%', }) function initChart() { @@ -44,7 +44,7 @@ function evalParseOption(option_json: any) { if (option_json.style) { style.value = option_json.style } - const option = {} + let option = {} tmp.value = echarts eval(option_json.option) return option @@ -62,7 +62,7 @@ watch( initChart() }) } - } + }, ) onMounted(() => {