remember last box

This commit is contained in:
j3d1 2019-12-29 17:04:03 +01:00
parent 7141c8e34e
commit ca38616395
3 changed files with 12 additions and 4 deletions

View file

@ -23,6 +23,9 @@ export default {
data: () => ({
item: {}
}),
created() {
this.item = {box: this.$store.state.lastUsed.box || ''};
},
methods: {
saveNewItem() {
this.$store.dispatch('postItem', this.item);