added slug as combobox values
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user