fix ui: 修复Docker中运行通过UI重启报错的问题
使用Claude Code修复
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user