make logo a hyperlink to site baseURL (home)

This commit is contained in:
Jitesh Doshi 2023-02-01 19:22:02 -05:00
parent 54de4a3c78
commit ff3367ac42

View File

@ -1,6 +1,8 @@
<template> <template>
<header> <header>
<a :href="home">
<img v-if="showLogo !== undefined" :src="logoURL" /> <img v-if="showLogo !== undefined" :src="logoURL" />
</a>
<action <action
v-if="showMenu !== undefined" v-if="showMenu !== undefined"
class="menu-button" class="menu-button"
@ -32,7 +34,7 @@
</template> </template>
<script> <script>
import { logoURL } from "@/utils/constants"; import { logoURL, baseURL } from "@/utils/constants";
import Action from "@/components/header/Action"; import Action from "@/components/header/Action";
@ -45,6 +47,7 @@ export default {
data: function () { data: function () {
return { return {
logoURL, logoURL,
home: baseURL + "/",
}; };
}, },
methods: { methods: {