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