1
This commit is contained in:
parent
2bda7490b9
commit
523858397d
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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">
|
||||||
|
|
|
||||||
|
|
@ -210,8 +210,6 @@ const props = defineProps({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
console.log(props.groupList)
|
|
||||||
|
|
||||||
const groupMemberInfoMap = {
|
const groupMemberInfoMap = {
|
||||||
群体一: "主流权威媒体与自媒体账号结合群体",
|
群体一: "主流权威媒体与自媒体账号结合群体",
|
||||||
群体二: "主流资讯评论及军政垂直领域账号群体",
|
群体二: "主流资讯评论及军政垂直领域账号群体",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user