修复ts警告

This commit is contained in:
YHH
2025-10-16 18:20:31 +08:00
parent 8d741bf1b9
commit 2a17c47c25
9 changed files with 36 additions and 28 deletions

View File

@@ -9,7 +9,7 @@ interface PortManagerProps {
export function PortManager({ onClose }: PortManagerProps) {
const [isServerRunning, setIsServerRunning] = useState(false);
const [serverPort, setServerPort] = useState<number>(8080);
const [serverPort] = useState<number>(8080);
const [isChecking, setIsChecking] = useState(false);
const [isStopping, setIsStopping] = useState(false);