If home and click logo reload page
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<nav>
|
<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" />
|
<TmdbLogo class="logo" />
|
||||||
</router-link>
|
</router-link>
|
||||||
|
|
||||||
@@ -51,6 +54,9 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapGetters("user", ["loggedIn"]),
|
...mapGetters("user", ["loggedIn"]),
|
||||||
...mapGetters("hamburger", ["isOpen"]),
|
...mapGetters("hamburger", ["isOpen"]),
|
||||||
|
isHome() {
|
||||||
|
return this.$route.path === "/";
|
||||||
|
},
|
||||||
profileRoute() {
|
profileRoute() {
|
||||||
return {
|
return {
|
||||||
title: !this.loggedIn ? "Signin" : "Profile",
|
title: !this.loggedIn ? "Signin" : "Profile",
|
||||||
|
|||||||
Reference in New Issue
Block a user