fix ui: 修复Docker中运行通过UI重启报错的问题

使用Claude Code修复
This commit is contained in:
小光
2025-08-06 15:03:06 +08:00
committed by GitHub
parent d9e8df5c04
commit 37cb0c776f

View File

@@ -47,7 +47,7 @@ export const createServer = (config: any): Server => {
// Restart the service after a short delay to allow response to be sent // Restart the service after a short delay to allow response to be sent
setTimeout(() => { setTimeout(() => {
const { spawn } = require("child_process"); const { spawn } = require("child_process");
spawn("ccr", ["restart"], { detached: true, stdio: "ignore" }); spawn(process.execPath, [process.argv[1], "restart"], { detached: true, stdio: "ignore" });
}, 1000); }, 1000);
}); });