SimulatedGREG / electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.
https://simulatedgreg.gitbooks.io/electron-vue/content/
MIT License
15.46k stars 1.54k forks source link

enableRemoteModule :true 设置无效 #1073

Open liuguofeng-java opened 3 years ago

liuguofeng-java commented 3 years ago

使用remote模块时发现 remote==undefined 然后在new BrowserWindow() 主线程添加: mainWindow = new BrowserWindow({ height: 563, useContentSize: true, width: 1000, transparent: true, frame: false,

webPreferences: {
  nodeIntegration: true,
  enableRemoteModule: true,
}

}) 发现依然无效,在源.ts里也没发现有这个属性