remember last box
This commit is contained in:
parent
7141c8e34e
commit
ca38616395
3 changed files with 12 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue