Reseteando ui

This commit is contained in:
Alejandro Tasistro 2025-05-29 16:51:01 -03:00
parent ca42526a62
commit 258bccf59b
2 changed files with 8 additions and 0 deletions

View file

@ -96,6 +96,7 @@ const actions = {
async resetear({ commit, dispatch }) {
await axios.delete("/pedido/sesion");
dispatch("productos/getProductos", null, { root: true });
dispatch("ui/resetear", null, { root: true });
commit('reset');
},
};

View file

@ -17,6 +17,10 @@ const mutations = {
popUltimaBusqueda(state) {
if (!state.migas.at(-1).action)
state.migas.pop();
},
reset(state) {
state.show_chismosa = false;
state.show_devoluciones = false;
}
};
@ -47,6 +51,9 @@ const actions = {
: error.message;
dispatch("toast", { mensaje: errorMsg });
},
resetear({ commit }) {
commit("reset");
},
};
export default {