fix: 移除Windows控制台配置并修改后端进程stdio设置

This commit is contained in:
dmy
2026-01-15 02:19:38 +08:00
parent 70f0498c44
commit 20619bb87b
2 changed files with 2 additions and 3 deletions

View File

@@ -19,8 +19,7 @@
"win": { "win": {
"target": "nsis", "target": "nsis",
"icon": "frontend/public/favicon.ico", "icon": "frontend/public/favicon.ico",
"requestedExecutionLevel": "asInvoker", "requestedExecutionLevel": "asInvoker"
"console": false
}, },
"nsis": { "nsis": {
"oneClick": false, "oneClick": false,

View File

@@ -124,7 +124,7 @@ async function startBackend() {
...process.env, ...process.env,
NODE_ENV: process.env.NODE_ENV || 'production', NODE_ENV: process.env.NODE_ENV || 'production',
}, },
stdio: 'inherit', stdio: 'pipe',
}); });
backendProcess.on('error', (error) => { backendProcess.on('error', (error) => {