19 lines
377 B
Vue
19 lines
377 B
Vue
<template>
|
|
<router-view />
|
|
</template>
|
|
|
|
<script setup>
|
|
import useScreenStore from "@/store/modules/screen";
|
|
|
|
const screenStore = useScreenStore();
|
|
|
|
import { onMounted } from "vue";
|
|
|
|
onMounted(() => {
|
|
const theme = screenStore.theme;
|
|
screenStore.toggleTheme(theme);
|
|
window.document.documentElement.setAttribute("data-theme", theme);
|
|
});
|
|
</script>
|
|
|
|
<style scoped></style> |