fix: execSync → async spawn 解决更新卡死,页面自动检查版本,改进容器停止步骤

This commit is contained in:
2026-05-25 00:17:37 +08:00
parent 4a4aef562a
commit 54d97fc5a1
2 changed files with 118 additions and 81 deletions
+6
View File
@@ -42,6 +42,12 @@ export default function UpdatePage() {
logEndRef.current?.scrollIntoView({behavior: "smooth"});
}, [logs]);
// 页面加载时自动检查更新
useEffect(() => {
handleCheckUpdate();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
// 检查更新
const handleCheckUpdate = useCallback(async () => {
setCheckState("checking");