mirror of
https://github.com/beak-insights/felicity-lims.git
synced 2025-02-24 17:02:55 +08:00
24 lines
No EOL
709 B
Vue
24 lines
No EOL
709 B
Vue
<script setup lang="ts">
|
|
import { computed } from 'vue';
|
|
import { useLocationStore } from '../../stores';
|
|
|
|
const locationStore = useLocationStore()
|
|
const resetSelected = () => locationStore.updateConfRoute("");
|
|
const selectedRoute = computed(() => locationStore.getConfRoute)
|
|
</script>
|
|
|
|
<template>
|
|
<div class="">
|
|
<div class="flex justify-start">
|
|
<span @click="resetSelected" class="mr-4">
|
|
<router-link to="/admin" class="no-underline">
|
|
<h4>Felicity Configurations</h4>
|
|
</router-link>
|
|
</span>
|
|
<span v-if="selectedRoute">→</span>
|
|
<span class="ml-4"> {{ selectedRoute }}</span>
|
|
</div>
|
|
<hr>
|
|
<router-view />
|
|
</div>
|
|
</template> |