2026-03-02 14:15:39 +00:00
|
|
|
<template>
|
2026-03-02 16:34:44 +00:00
|
|
|
<div class="h-dvh flex flex-col" :class="currentTheme">
|
2026-03-02 14:15:39 +00:00
|
|
|
<RouterView />
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2026-03-02 16:34:44 +00:00
|
|
|
import { onMounted } from 'vue'
|
2026-03-02 14:15:39 +00:00
|
|
|
import { RouterView } from 'vue-router'
|
2026-03-02 16:34:44 +00:00
|
|
|
import { useTheme } from '@/composables/useTheme'
|
|
|
|
|
|
|
|
|
|
const { currentTheme, initTheme } = useTheme()
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
initTheme()
|
|
|
|
|
})
|
2026-03-02 14:15:39 +00:00
|
|
|
</script>
|