- 调整 import 语句的格式,统一使用分号结尾 - 规范化 handleThemeStyle 函数导入的括号和空格 - 在 handleThemeStyle 函数调用后添加分号 - 为 nextTick 回调函数末尾添加分号 - 移除文件末尾的多余空行
16 lines
299 B
Vue
Executable File
16 lines
299 B
Vue
Executable File
<template>
|
|
<router-view />
|
|
</template>
|
|
|
|
<script setup>
|
|
import useSettingsStore from '@/store/modules/settings';
|
|
import { handleThemeStyle } from '@/utils/theme';
|
|
|
|
onMounted(() => {
|
|
nextTick(() => {
|
|
// 初始化主题样式
|
|
handleThemeStyle(useSettingsStore().theme);
|
|
});
|
|
});
|
|
</script>
|