13 lines
350 B
Vue

<script setup lang="ts">
import { computed } from 'vue'
import AdminPage from './components/AdminPage.vue'
import ClientPage from './components/ClientPage.vue'
const isAdminPage = computed(() => window.location.pathname.toLowerCase().startsWith('/admin'))
</script>
<template>
<AdminPage v-if="isAdminPage" />
<ClientPage v-else />
</template>