stash
This commit is contained in:
parent
cf1965a817
commit
3cd3c108de
1 changed files with 6 additions and 0 deletions
|
@ -495,6 +495,12 @@ const store = createStore({
|
||||||
state.fetchedData.tickets = 0;
|
state.fetchedData.tickets = 0;
|
||||||
await Promise.all([dispatch('loadTickets'), dispatch('fetchShippingVouchers')]);
|
await Promise.all([dispatch('loadTickets'), dispatch('fetchShippingVouchers')]);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
async createShippingCode({commit, state}, code) {
|
||||||
|
const {data, success} = await http.post('/2/shipping_codes/', {code}, state.user.token);
|
||||||
|
if (data && success) {
|
||||||
|
commit('setShippingCodes', data);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
|
|
Loading…
Reference in a new issue