Skip to content

Commit

Permalink
Debugging Docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-32 committed Feb 29, 2024
1 parent e0be213 commit ecf1e45
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pages/docs/[...slug].vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ let path;
onBeforeMount(async () => {
locale.value = localStorage.getItem('page-locale') || i18n.getBrowserLocale() || 'en'
let temp = await fetchContentNavigation(queryContent('docs', locale.value))
console.log(temp)
if (!temp)
temp = await fetchContentNavigation(queryContent('docs','en'))
// navigation.value = (temp?.at(0)?.children?.at(0)?.children as any)?.reverse();
Expand All @@ -36,6 +38,7 @@ onBeforeMount(async () => {
if (!aIsPage && bIsPage) return 1; // b (page) should come before a (directory)
return 0; // No change in order for two items of the same type
});
console.log(sorted)
navigation.value = sorted;
console.log($route.path)
Expand Down

0 comments on commit ecf1e45

Please sign in to comment.