修复前端无法编译的问题

This commit is contained in:
dushixiang committed 2025-11-13 20:13:36 +08:00
1 parent a7d1795463
commit b9adf96f3a
1 file changed
+1 -3
+1 -3
View File
@@ -133,9 +133,7 @@ const StatCard = ({icon, label, value, color = 'blue'}: {
);
};
type MetricsTooltipProps = TooltipProps<number, string> & { unit?: string };
const CustomTooltip = ({active, payload, label, unit = ' ms'}: MetricsTooltipProps) => {
const CustomTooltip = ({active, payload, label, unit = ' ms'}: TooltipProps<number, string> & { unit?: string; label?: string; payload?: any[] }) => {
if (!active || !payload || payload.length === 0) {
return null;
}