Capital/layouts/minimal.vue

25 lines
493 B
Vue
Raw Permalink Normal View History

2024-10-04 12:21:01 +00:00
<template>
<v-system-bar flat color="primary" class="px-5 flex justify-center">
<v-btn icon="mdi-arrow-left" variant="text" color="white" size="x-small" class="mt-[2px]" @click="goBack" />
<h2 class="mt-1">Solsynth LLC</h2>
<v-spacer />
</v-system-bar>
<v-main>
<slot />
</v-main>
</template>
<script setup lang="ts">
const router = useRouter()
function goBack() {
if (window.history.length > 0) {
router.go(-1)
} else {
navigateTo("/")
}
}
</script>