Skip to content

Commit

Permalink
fix: breadcrumbs not displayed
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuseduardomedeiros committed May 24, 2024
1 parent b762cd3 commit 4cc1500
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ export default {
},
},
computed: {
...mapState(useHeaderStore, [
'breadcrumbs'
]),
...mapState(useHeaderStore, ['breadcrumbs']),
},
};
</script>
Expand Down
2 changes: 1 addition & 1 deletion src/stores/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useModulesStore } from '@/stores/modules';
export const useHeaderStore = defineStore('header', {
getters: {
breadcrumbs() {
const routerName = this.$router.currentRoute.name;
const routerName = this.$route.name;
const breadcrumbs = [];
const modulesStore = useModulesStore();

Expand Down

0 comments on commit 4cc1500

Please sign in to comment.