We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00a84c2 commit c132997Copy full SHA for c132997
src/layout/components/NavBar.vue
@@ -1,12 +1,17 @@
1
<script setup lang="ts">
2
const route = useRoute()
3
4
+const router = useRouter()
5
+
6
const title = computed(() => route.meta.title)
7
8
const showLeftArrow = computed(() => route.meta.layout?.navBar?.showLeftArrow)
9
10
function onClickLeft() {
- history.back()
11
+ if (window.history.state?.back)
12
+ history.back()
13
+ else
14
+ router.replace("/")
15
}
16
</script>
17
0 commit comments