Skip to content

Let's use AI to Earn!

fix(热门内容): 热点事件修复图表tooltip会被盖住的bug

gaoSir8aa9ca56a9e9
diff --git a/src/app/[lng]/hotContent/components/HotEvent/echart/drawHotEventEchartLine.ts b/src/app/[lng]/hotContent/components/HotEvent/echart/drawHotEventEchartLine.ts
index c3782054..9cbe784a 100644
--- a/src/app/[lng]/hotContent/components/HotEvent/echart/drawHotEventEchartLine.ts
+++ b/src/app/[lng]/hotContent/components/HotEvent/echart/drawHotEventEchartLine.ts
@@ -39,6 +39,7 @@ export default function drawHotEventEchartLine(
const option: EChartsOption = {
grid: { left: 0, right: 0, top: 0, bottom: 0, containLabel: false },
tooltip: {
+ appendTo: "body",
trigger: "axis",
show: true,
formatter: (params: any) => {