feat: v0.1.0

This commit is contained in:
范胜发
2022-03-08 14:58:05 +08:00
commit 9bae8badbd
40 changed files with 14669 additions and 0 deletions

20
public/store.js Normal file
View File

@ -0,0 +1,20 @@
const Store = require('electron-store');
const store = new Store();
function initStore() {
if (!store.has('todo')) {
store.set('todo', []);
}
}
initStore();
module.exports = {
getTodo() {
return store.get('todo');
},
setTodo(value) {
console.log(store.path);
return store.set('todo', value);
},
};