diff --git a/web/src/assets/index.css b/web/src/assets/index.css index 51a7e93..9cd9759 100644 --- a/web/src/assets/index.css +++ b/web/src/assets/index.css @@ -202,3 +202,16 @@ input[type="number"]:hover::-webkit-outer-spin-button { .dark .custom-scrollbar { scrollbar-color: oklch(0.5 0 0 / 40%) transparent; } + +/* ApexCharts tooltip fix */ +.apexcharts-tooltip { + background: transparent !important; + border: none !important; + box-shadow: none !important; + border-radius: 0 !important; + padding: 0 !important; +} + +.apexcharts-tooltip-title { + display: none !important; +} diff --git a/web/src/views/dashboard/Dashboard.vue b/web/src/views/dashboard/Dashboard.vue index f37e976..a625fea 100644 --- a/web/src/views/dashboard/Dashboard.vue +++ b/web/src/views/dashboard/Dashboard.vue @@ -159,25 +159,25 @@ const renderLineChart = () => { const success = series[1]?.[dataPointIndex] ?? 0 const failed = series[2]?.[dataPointIndex] ?? 0 const rate = total > 0 ? ((success / total) * 100).toFixed(1) : '0.0' - return `
-
${w.globals.categoryLabels[dataPointIndex]}
-
-
- 总数: - ${total} 次 + return `
+
${w.globals.categoryLabels[dataPointIndex]}
+
+
+ 总数: + ${total} 次
-
- 成功: - ${success} 次 +
+ 成功: + ${success} 次
-
- 失败: - ${failed} 次 +
+ 失败: + ${failed} 次
-
+
- 成功率: - ${rate}% + 成功率: + ${rate}%