-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.vue
63 lines (57 loc) · 1.13 KB
/
app.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<template>
<NuxtLayout>
<v-app>
<!-- <NavHome v-if="route.path === '/'"></NavHome>
<TheNav v-else></TheNav> -->
<TheNavV2></TheNavV2>
<TheSidebar></TheSidebar>
<NuxtLoadingIndicator color="blue" />
<NuxtPage style="min-height: 90vh" />
<TheFooter></TheFooter>
</v-app>
</NuxtLayout>
</template>
<script setup>
let isHome = ref();
let hideBreadcrumbBar = ref(false);
const route = useRoute();
const routePath = ref(route.path);
let isMounted = ref(false);
watchEffect(() => {
routePath.value = route.path;
console.log("route.path from app.vue: ", routePath.value);
// if (route.path === "/") {
// hideBreadcrumbBar.value = true;
// isHome = true;
// } else {
// hideBreadcrumbBar.value = false;
// isHome = false;
// }
});
const scrollToTop = () => {
if (!isMounted.value) {
return;
}
window.scrollTo({
top: 0,
left: 0,
behavior: "smooth",
});
};
onMounted(() => {
isMounted.value = true;
console.log("isMounted: ", isMounted.value);
});
</script>
<style>
h2,
h3,
h4,
h5,
h6 {
a {
color: black;
text-decoration: none;
}
}
</style>