🎈 perf: 添加自动导入,优化性能

This commit is contained in:
alger
2023-12-27 14:40:22 +08:00
parent 70139e3ca4
commit 6c57e77969
29 changed files with 268 additions and 128 deletions
+3 -3
View File
@@ -4,8 +4,8 @@ const path = require('path')
let mainWin = null
function createWindow() {
mainWin = new BrowserWindow({
width: 1280,
height: 900,
width: 1200,
height: 780,
frame: false,
webPreferences: {
nodeIntegration: true,
@@ -13,7 +13,7 @@ function createWindow() {
},
})
const win = mainWin
win.setMinimumSize(1280, 900)
win.setMinimumSize(1200, 780)
if (process.env.NODE_ENV === 'development') {
win.webContents.openDevTools({ mode: 'detach' })
win.loadURL('http://localhost:4678/')