diff --git a/resources/js/components/comunes/NavBar.vue b/resources/js/components/comunes/NavBar.vue index 4bc97e2..ec65835 100644 --- a/resources/js/components/comunes/NavBar.vue +++ b/resources/js/components/comunes/NavBar.vue @@ -51,7 +51,7 @@ diff --git a/resources/js/store/modules/ui.js b/resources/js/store/modules/ui.js index 3144e16..f1d3e33 100644 --- a/resources/js/store/modules/ui.js +++ b/resources/js/store/modules/ui.js @@ -1,6 +1,8 @@ const state = { show_chismosa: false, show_devoluciones: false, + miga_inicial: { nombre: 'Categorias', href: '/pedido' }, + migas: [{ nombre: 'Categorias', href: '/pedido' }], }; const mutations = { @@ -10,6 +12,9 @@ const mutations = { toggleDevoluciones(state) { state.show_devoluciones = !state.show_devoluciones; }, + addMiga(state, miga) { + state.migas.push(miga); + } }; export default {