ebike-plus-ui/src/App.vue

19 lines
323 B
Vue
Raw Normal View History

2024-04-26 12:59:43 +08:00
<template>
<div>
<router-view />
</div>
</template>
2024-04-29 16:02:59 +08:00
<script setup lang="ts">
2024-05-06 12:55:29 +08:00
import { useThemeMethods } from "@/hooks/useThemeMethods";
2024-04-29 16:02:59 +08:00
2024-05-01 23:56:53 +08:00
// 初始化主题
const onTheme = () => {
2024-05-06 16:07:17 +08:00
let { initTheme } = useThemeMethods();
initTheme();
2024-05-01 23:56:53 +08:00
};
onTheme();
2024-04-29 16:02:59 +08:00
</script>
2024-04-26 12:59:43 +08:00
<style lang="scss" scoped></style>