Skip to content

Commit d335aa3

Browse files
fix a bug
1 parent d33bea8 commit d335aa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/main/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ const schema: any = {
122122
},
123123
};
124124

125-
const store = new Store({schema});
125+
const store = new Store();
126+
if(!store.get('itemNum'))store.store = schema;
126127

127128
// IPC listener
128129
ipcMain.on('getStore', async (event, val) => {

0 commit comments

Comments
 (0)