From dfa2a7d4a5e1be31a28c13729504478eabd09b89 Mon Sep 17 00:00:00 2001 From: Seth Ladygo Date: Wed, 18 Sep 2019 15:46:12 -0700 Subject: [PATCH] cateditor: prod search sends season and region --- cateditor/src/pages/editor/store/index.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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)