If home and click logo reload page

This commit is contained in:
2022-03-06 23:51:32 +01:00
parent 8c28f7d5f3
commit 9bb5211b4e

View File

@@ -1,6 +1,9 @@
<template>
<nav>
<router-link class="nav__logo" to="/home" exact>
<a v-if="isHome" class="nav__logo" href="/">
<TmdbLogo class="logo" />
</a>
<router-link v-else class="nav__logo" to="/" exact>
<TmdbLogo class="logo" />
</router-link>
@@ -51,6 +54,9 @@ export default {
computed: {
...mapGetters("user", ["loggedIn"]),
...mapGetters("hamburger", ["isOpen"]),
isHome() {
return this.$route.path === "/";
},
profileRoute() {
return {
title: !this.loggedIn ? "Signin" : "Profile",