diff --git a/src/pages/customer/component/CustomerInviteRelationChart.vue b/src/pages/customer/component/CustomerInviteRelationChart.vue index bac24d9..4c288e9 100644 --- a/src/pages/customer/component/CustomerInviteRelationChart.vue +++ b/src/pages/customer/component/CustomerInviteRelationChart.vue @@ -512,8 +512,8 @@ function buildChartOption(list: Customer[]): EChartsOption { // 使用接口计算出的节点坐标作为初始布局,避免首次渲染随机跳动 initLayout: "none", // repulsion 控制节点间排斥力,edgeLength 控制连线期望长度 - repulsion: 1000, - edgeLength: 640, + repulsion: 1200, + edgeLength: 750, // gravity 控制节点向中心聚拢的力度,layoutAnimation 保持布局变化平滑 gravity: .01, layoutAnimation: true