Skip to content

Commit

Permalink
feat(editor): bw logo redirect to main route
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Oct 16, 2021
1 parent dcc0bae commit 7719f50
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/components/editor/aside/AsideBarLogo.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
<template>
<div class="flex justify-around sm:justify-between items-center w-full p-2">
<img class="object-contain" width="60" src="/logo.svg" />
<img
class="object-contain cursor-pointer"
width="60"
src="/logo.svg"
@click.stop.prevent="onClick"
/>
<p class="wb-text font-bold text-3xl sm:text-xl">Better Write</p>
</div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
const onClick = () => {
router.push('/')
}
</script>

0 comments on commit 7719f50

Please sign in to comment.