fix: Ecarts rendering error (#4009)

This commit is contained in:
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

View File

@ -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(() => {