/
home
/
henzagold
/
site
/
store
/
File Upload :
llllll
Current File: /home/henzagold/site/store/config.js
export const state = () => ({ brands:[], colors:[], filterGram:[], filterPrice:[], menu:[], category:[], price:{}, }); export const mutations = { SET(state, data) { state.brands=data.brands; state.colors=data.colors; state.category=data.category; state.menu=data.menu.filter(item=> ![7,19,24].includes(item.id)); state.filterGram=data.filterGram; state.filterPrice=data.filterPrice; }, SETPRICE(state,data){ state.price=data; } } export const actions = { init({commit}, e) { commit('SET', e); }, initPrice({commit},e) { commit('SETPRICE',e); } };
Copyright ©2k19 -
Hexid
|
Tex7ure