// fixture: main-window.ts(不安全示例,供扫描器识别,不参与编译) const win = new BrowserWindow({ webPreferences: { contextIsolation: false, sandbox: false, nodeIntegration: true, webSecurity: false, webviewTag: true, }, }); // 注释里的 nodeIntegration: true 不应该被扫描器当成配置