second shitty fix
This commit is contained in:
parent
ac608117d8
commit
6bcbd59362
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ export default {
|
||||||
item: {}
|
item: {}
|
||||||
}),
|
}),
|
||||||
created() {
|
created() {
|
||||||
this.item = {box: this.$store.state.lastUsed.box || ''};
|
this.item = {box: this.$store.state.lastUsed.box || '', cid: this.$store.state.lastUsed.cid || ''};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
saveNewItem() {
|
saveNewItem() {
|
||||||
|
|
|
@ -134,7 +134,7 @@ const store = new Vuex.Store({
|
||||||
commit('removeItem',item);
|
commit('removeItem',item);
|
||||||
},
|
},
|
||||||
async postItem({ commit, getters }, item) {
|
async postItem({ commit, getters }, item) {
|
||||||
commit('updateLastUsed',{box: item.box});
|
commit('updateLastUsed',{box: item.box, cid: item.cid});
|
||||||
const { data } = await axios.post(`/1/${getters.getEventSlug}/item`, item);
|
const { data } = await axios.post(`/1/${getters.getEventSlug}/item`, item);
|
||||||
commit('appendItem', data);
|
commit('appendItem', data);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue