This commit is contained in:
SunWuyuan
2025-03-22 16:11:23 +08:00
parent 29ce2a9336
commit 84abe2598f
4 changed files with 93 additions and 4 deletions
+11 -1
View File
@@ -10,7 +10,17 @@
</template>
<script setup>
//
import { onMounted } from 'vue';
import { useTheme } from 'vuetify';
import { getSetting } from '@/utils/settings';
const theme = useTheme();
onMounted(() => {
// 应用保存的主题设置
const savedTheme = getSetting('theme.mode');
theme.global.name.value = savedTheme;
});
</script>
<style>