changed sel

This commit is contained in:
2025-12-31 00:39:52 +00:00
parent 6ad37399e0
commit e54e0c4cf3

View File

@@ -11,8 +11,11 @@ const color = ref("...");
const fonts_list = ref(["Public Sans","Space Grotesk", "Geist"])
const font = ref("...");
const ready = ref(false);
onMounted(() => {
color.value = ui_color_cookie().value
ready.value = true
})
watch(color, (newVal, oldVal) => {
@@ -32,6 +35,7 @@ watch(color, (newVal, oldVal) => {
description="Select the main color of the UI"
size="lg"
class="flex justify-between w-full mt-3 mb-3"
:disabled="!ready"
>
<USelect v-model="color" :items="colors_list" />
</UFormField>
@@ -50,6 +54,7 @@ watch(color, (newVal, oldVal) => {
description="Select which font you want"
size="lg"
class="flex justify-between w-full mt-3 mb-3"
:disabled="!ready"
>
<USelect v-model="font" :items="fonts_list" />
</UFormField>