Open klren0312 opened 7 months ago
// 获取屏幕分辨率 ipcMain.handle('getScreenPx', () => { const { size, scaleFactor } = screen.getPrimaryDisplay() return { width: size.width * scaleFactor, height: size.height * scaleFactor } })