新增窗口大小设置

This commit is contained in:
lyswhut
2019-10-22 01:25:03 +08:00
parent c97bc5edfc
commit 31e8b466cf
13 changed files with 118 additions and 18 deletions
+8
View File
@@ -0,0 +1,8 @@
const Store = require('electron-store')
const { windowSizeList } = require('../../common/config')
exports.getWindowSizeInfo = () => {
let electronStore = new Store()
const { windowSizeId = 1 } = electronStore.get('setting')
return windowSizeList.find(i => i.id === windowSizeId) || windowSizeList[0]
}