This commit is contained in:
qumeng039@126.com 2025-08-15 18:06:06 +08:00
parent 2bda7490b9
commit 523858397d
3 changed files with 8 additions and 9 deletions

View File

@ -101,6 +101,7 @@ const onMouseUp = () => {
const initChart = () => {
// 使ID
if (chartInstance) return
chartInstance = echarts.init(document.getElementById(chartId.value))
const legendData = props.chartData.seriesList.map((item) => item.name)
const option = {

View File

@ -291,13 +291,13 @@ const handleResize = () => {
})
}
onUnmounted(() => {
window.removeEventListener("resize", handleResize)
chartInstances.forEach((chart) => {
chart.dispose()
})
chartInstances.clear()
})
// onUnmounted(() => {
// window.removeEventListener("resize", handleResize)
// chartInstances.forEach((chart) => {
// chart.dispose()
// })
// chartInstances.clear()
// })
</script>
<style scoped lang="less">

View File

@ -210,8 +210,6 @@ const props = defineProps({
}
})
console.log(props.groupList)
const groupMemberInfoMap = {
群体一: "主流权威媒体与自媒体账号结合群体",
群体二: "主流资讯评论及军政垂直领域账号群体",