script setup lang=tsscripttemplate div class=home !-- 1 -- span class=title早上好尊敬的超级管理员span !-- 2 -- el-row class=project_all div class=all_item v-for=item ind
可能是因为在更新数据后没有重新绘制图表。可以在 onUpdated 钩子函数中重新绘制图表,例如:
onUpdated(() => {
// 获取 DOM 元素
const myChart = echarts.getInstanceByDom(document.getElementById('mychart'))
// 更新图表数据
myChart.setOption({
...
})
})
原文地址: https://www.cveoy.top/t/topic/bAEe 著作权归作者所有。请勿转载和采集!