Use readonly for layout composable

This commit is contained in:
tugcekucukoglu
2024-07-29 16:01:14 +03:00
parent 0e3130d2a6
commit 3efe7ae222
8 changed files with 39 additions and 37 deletions

View File

@@ -1,14 +1,14 @@
<script setup>
import { useLayout } from '@/layout/composables/layout';
import { ref, computed } from 'vue';
import { computed, ref } from 'vue';
const { layoutConfig } = useLayout();
const { isDarkTheme } = useLayout();
const email = ref('');
const password = ref('');
const checked = ref(false);
const logoUrl = computed(() => {
return `/layout/images/${layoutConfig.darkTheme.value ? 'logo-white' : 'logo-dark'}.svg`;
return `/layout/images/${isDarkTheme ? 'logo-white' : 'logo-dark'}.svg`;
});
</script>