Skip to content

Commit ba3680f

Browse files
committed
UPD: Home icon path
1 parent c97a852 commit ba3680f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/Nav.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
<li class="nav-item text-uppercase" v-for="route in routes" :key="route.path">
4848
<router-link :to="route.path" class="nav-link" :title="route.children[0].name"
4949
:class="{ active: isActive(route.path) }">
50-
<i class="bi bi-house-fill" v-if="route.path === '/'"></i>
51-
{{ route.path !== "/" ? route.children[0].name : "" }}
50+
<i class="bi bi-house-fill" v-if="route.path === `${siteUrl}/`"></i>
51+
{{ route.path !== `${siteUrl}/` ? route.children[0].name : "" }}
5252
</router-link>
5353
</li>
5454
</ul>
@@ -63,6 +63,8 @@ import { computed } from "vue";
6363
import { useRouter } from "vue-router";
6464
import { routes } from "@/router";
6565
66+
const siteUrl = import.meta.env.VITE_BUILD_ADDRESS;
67+
6668
const router = useRouter();
6769
const activeRoute = computed(() => router.currentRoute.value.path);
6870
const isActive = (path: string) => path === activeRoute.value;

0 commit comments

Comments
 (0)