Skip to content

Commit

Permalink
added privacy
Browse files Browse the repository at this point in the history
  • Loading branch information
sharknoon committed Aug 3, 2023
1 parent ac79cf8 commit 39f5278
Show file tree
Hide file tree
Showing 5 changed files with 490 additions and 4 deletions.
10 changes: 8 additions & 2 deletions src/components/NavigationComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,18 @@ const translationY = ref(-0.25);
watchEffect(() => {
const path = router.currentRoute.value.path;
const index = items.value.findIndex((item) => path.startsWith(item.to));
translationY.value = index * 2.8 - 0.25;
if (index !== -1) {
translationY.value = index * 2.8 - 0.25;
} else {
translationY.value = -999;
}
const meta = router.currentRoute.value.meta;
let title = "Pixina";
const title = "Pixina";
if (meta.title) {
document.title = title + " - " + t(String(meta.title));
} else {
document.title = title;
}
});
</script>
Expand Down
Loading

0 comments on commit 39f5278

Please sign in to comment.