Files
intc-iot-screen/src/App.vue
2025-04-24 17:33:56 +08:00

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>