24 lines
536 B
JavaScript
Vendored
24 lines
536 B
JavaScript
Vendored
const state = {
|
|
show_chismosa: false,
|
|
show_devoluciones: false,
|
|
miga_inicial: { nombre: 'Categorias', href: '/pedido' },
|
|
migas: [{ nombre: 'Categorias', href: '/pedido' }],
|
|
};
|
|
|
|
const mutations = {
|
|
toggleChismosa(state) {
|
|
state.show_chismosa = !state.show_chismosa;
|
|
},
|
|
toggleDevoluciones(state) {
|
|
state.show_devoluciones = !state.show_devoluciones;
|
|
},
|
|
addMiga(state, miga) {
|
|
state.migas.push(miga);
|
|
}
|
|
};
|
|
|
|
export default {
|
|
namespaced: true,
|
|
state,
|
|
mutations,
|
|
};
|