From 00d45b0ee32685aecbd6b7f15b3544f4654365e7 Mon Sep 17 00:00:00 2001 From: qubiaobiao <3294694717@qq.com> Date: Wed, 17 Apr 2024 16:16:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D=E9=95=BF?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E8=BF=90=E8=A1=8C=E5=90=8E3D=E9=A5=BC?= =?UTF-8?q?=E5=9B=BE=E6=B6=88=E5=A4=B1=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/render/components/Ring.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/render/components/Ring.vue b/src/render/components/Ring.vue index 1f3fc7e..c8cdf17 100644 --- a/src/render/components/Ring.vue +++ b/src/render/components/Ring.vue @@ -51,6 +51,8 @@ const getParametricEquation = ( // 计算高亮效果的放大比例(未高亮,则比例为 1) let hoverRate = isHovered ? size[0] : size[1]; + size = null; + // 返回曲面参数方程 return { u: { @@ -292,6 +294,7 @@ const getPie3D = (sumValue, pieValue, internalDiameterRatio, height, size) => { endValue = startValue + pieValue[i]; option.series[i].pieData.startRatio = startValue / sumValue; option.series[i].pieData.endRatio = endValue / sumValue; + option.series[i].parametricEquation = null; option.series[i].parametricEquation = getParametricEquation( option.series[i].pieData.startRatio, option.series[i].pieData.endRatio,