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 = () => { const initChart = () => {
// 使ID // 使ID
if (chartInstance) return
chartInstance = echarts.init(document.getElementById(chartId.value)) chartInstance = echarts.init(document.getElementById(chartId.value))
const legendData = props.chartData.seriesList.map((item) => item.name) const legendData = props.chartData.seriesList.map((item) => item.name)
const option = { const option = {

View File

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

View File

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