diff --git a/src/App.tsx b/src/App.tsx index f6e4ce3..3117fb0 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -25,7 +25,7 @@ function App() { message: string; onConfirm: () => void; } | null>(null); - const timeoutRef = useRef(null); + const timeoutRef = useRef | null>(null); // 设置通知的辅助函数 const showNotification = (