我用的是带电子的angular 6。当我编译windows的时候,生成的版本没有全屏显示。我正在将main.ts中的方法更改为workarea、WorkAreaSize等

不,它也不起作用。
const electronScreen = screen;
const size = electronScreen.getPrimaryDisplay().workAreaSize;
console.log(size);
win = new BrowserWindow({
x: 0,
y: 0,
width: size.width,
height: size.height,
icon: __dirname + '/icon.ico',
resizable:false,
webPreferences: {
nodeIntegration:true,
webSecurity: false,
plugins: true
},
});发布于 2020-12-22 23:02:50
https://stackoverflow.com/questions/54034810
复制相似问题