瀏覽代碼

fix: 强制Node服务使用embeddable Python(含openpyxl),修复导出报错

ethanfly 3 天之前
父節點
當前提交
014c1511e3
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      client/electron/local-services.ts

+ 2 - 0
client/electron/local-services.ts

@@ -263,6 +263,8 @@ function startNodeServer(): void {
     USE_REDIS_QUEUE: 'false',
     // 限制 Node 服务端最大堆内存 768MB,防止无限增长被系统杀
     NODE_OPTIONS: '--max-old-space-size=768',
+    // 强制 Node.js 服务内的 Python 调用使用 embeddable Python(含 openpyxl)
+    PYTHON_BIN: findPython(),
   };
 
   // 打包模式下,uploads 目录使用 userData(可写),避免 Program Files 权限问题