Open sidebar
async categoryBySlug ({commit}, slug) { commit(CATEGORY_BY_SLUG) await axios.get(`${API_BASE}/categories`, { params: { slug: slug } }).then(response => { commit(CATEGORY_BY_SLUG_SUCCESS, response.data.data) }) }, async allProductsById ({commit}, id) { commit(ALL_PRODUCTS_BY_ID); await axios.get(`${API_BASE}/products`, { params: { category_id: id } }).then(response => { commit(ALL_PRODUCTS_BY_ID_SUCCESS, response.data.data) }) },
Close sidebar
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting
Back
Please note that all pasted data is publicly available.
X (fomerly Twitter)
GitHub
Use setting