Browse Source

save on delete;

chronos
stingl 3 years ago
parent
commit
21bf3a7035
  1. 1
      src/store/index.js

1
src/store/index.js

@ -117,6 +117,7 @@ export default createStore({
}, },
deleteNote(state, index) { deleteNote(state, index) {
state.notes.splice(index, 1); state.notes.splice(index, 1);
localStorage.setItem('notes', JSON.stringify(state.notes));
} }
} }
}) })

Loading…
Cancel
Save