This commit is contained in:
tugcekucukoglu
2024-07-29 13:18:55 +03:00
parent 2726aeb8a1
commit 0e3130d2a6
4 changed files with 44 additions and 56 deletions

View File

@@ -1,6 +1,6 @@
<script setup>
import { ref, watch } from 'vue';
import { useLayout } from '@/layout/composables/layout';
import { ref, watch } from 'vue';
const { layoutConfig } = useLayout();
let documentStyle = getComputedStyle(document.documentElement);
@@ -223,7 +223,16 @@ const setChart = () => {
};
watch(
layoutConfig.theme,
layoutConfig.primary,
() => {
setColorOptions();
setChart();
},
{ immediate: true }
);
watch(
layoutConfig.darkTheme,
() => {
setColorOptions();
setChart();