diff --git a/cateditor/src/pages/editor/store/index.js b/cateditor/src/pages/editor/store/index.js index 0d6b065..90a3133 100644 --- a/cateditor/src/pages/editor/store/index.js +++ b/cateditor/src/pages/editor/store/index.js @@ -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)