funcion/refactor-general #45

Merged
atasistro merged 240 commits from funcion/refactor-general into master 2025-06-19 21:10:19 -03:00
Showing only changes of commit 0836584192 - Show all commits

View file

@ -11,7 +11,6 @@ const mutations = {
setCategorias(state, categorias) {
state.lastFetch = new Date();
state.categorias = categorias;
console.log(state);
},
setProductos(state, productos) {
state.lastFetch = new Date();
@ -25,8 +24,6 @@ const mutations = {
const actions = {
async init({ dispatch }) {
if (state.lastFetch)
return;
dispatch('getCategorias');
dispatch('getProductos');
},