cateditor: prod search sends season and region
This commit is contained in:
@ -416,9 +416,14 @@ export const store = new Vuex.Store({
|
||||
commit('setCatalog', skeletonCatalog())
|
||||
},
|
||||
|
||||
async fetchProducts({ commit, dispatch }, text) {
|
||||
async fetchProducts({ commit, dispatch, getters }, text) {
|
||||
commit('setLoadingProducts', true)
|
||||
axios.post('/api/v1/products/search', text)
|
||||
axios.post('/api/v1/products/search',
|
||||
{
|
||||
text: text,
|
||||
season: getters.catalogProperty('season'),
|
||||
region: getters.catalogProperty('region')
|
||||
})
|
||||
.then(function(response) {
|
||||
commit('setLoadingProducts', false)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user