fix: Ecarts rendering error (#4009)

v3.2
shaohuzhang1 2025-09-09 13:43:37 +08:00 committed by GitHub
parent 2de5b1ecf0
commit 6ddad88357
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ const chartsRef = ref()
const style = ref({ const style = ref({
height: '220px', height: '220px',
width: '100%' width: '100%',
}) })
function initChart() { function initChart() {
@ -44,7 +44,7 @@ function evalParseOption(option_json: any) {
if (option_json.style) { if (option_json.style) {
style.value = option_json.style style.value = option_json.style
} }
const option = {} let option = {}
tmp.value = echarts tmp.value = echarts
eval(option_json.option) eval(option_json.option)
return option return option
@ -62,7 +62,7 @@ watch(
initChart() initChart()
}) })
} }
} },
) )
onMounted(() => { onMounted(() => {