ebike-plus-ui/src/App.vue

26 lines
467 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">
import { loadingPage } from "@/utils/loading-page";
2024-05-01 23:56:53 +08:00
import { useRoutingMethod } from "@/hooks/useThemeMethods";
2024-04-29 16:02:59 +08:00
2024-05-01 23:56:53 +08:00
// 初始化主题
const onTheme = () => {
let { darkMode } = useRoutingMethod();
darkMode();
};
onTheme();
2024-04-29 16:02:59 +08:00
2024-05-01 23:56:53 +08:00
// 加载动画
loadingPage.start();
2024-04-29 16:02:59 +08:00
onMounted(() => {
loadingPage.done(200);
});
</script>
2024-04-26 12:59:43 +08:00
<style lang="scss" scoped></style>