added slug as combobox values

This commit is contained in:
Mamalizz
2025-05-24 20:46:38 +03:30
parent f45e82dc53
commit ce604a6333
+3 -1
View File
@@ -4,10 +4,12 @@
type OptionChildren = {
id: number | string;
name: string;
slug: string;
};
type Option = {
name: string;
slug: string;
children: OptionChildren[];
};
@@ -39,7 +41,7 @@ watch(
() => value.value,
(newValue) => {
if (!!newValue) {
emit("update:modelValue", newValue.id);
emit("update:modelValue", newValue.slug);
}
}
);