修复默认设置数据结构

This commit is contained in:
lyswhut 2020-04-03 18:49:35 +08:00 committed by GitHub
parent 9e00593c9c
commit fab7dc9d3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,7 +9,10 @@ exports.getAppSetting = () => {
let electronStore = new Store()
const defaultSetting = {
windowSizeId: 1,
isShowTray: false,
tray: {
isShow: false,
isToTray: false,
},
}
return Object.assign(defaultSetting, electronStore.get('setting') || {})
}