Initial Version
This commit is contained in:
20
core/src/App.vue
Normal file
20
core/src/App.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<RouterView></RouterView>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { RouterView } from 'vue-router';
|
||||
import { onMounted } from 'vue';
|
||||
import { useTheme } from 'vuetify';
|
||||
import { useLayoutStore } from '@KTXC/stores/layoutStore';
|
||||
|
||||
const theme = useTheme();
|
||||
const layoutStore = useLayoutStore();
|
||||
|
||||
// Apply saved theme on mount
|
||||
onMounted(() => {
|
||||
if (layoutStore.theme) {
|
||||
theme.global.name.value = layoutStore.theme;
|
||||
}
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user