This is my App.vue file:
Code: Select all
<script setup>
import { watch } from 'vue'
import { useThemeStore } from './themeStore'
const themeStore = useThemeStore()
watch(themeStore.$state, (state) => {
const themeCss = state.darkBlueTheme ? 'dark' : 'light'
import(`@/styles/${themeCss}-blue-theme.css`)
})
</script>
<template>
router-view
</template>
<style>
</style>
any help would be greatly appreciated
Cheers