allCategories now has slugs
This commit is contained in:
@@ -63,10 +63,12 @@ const allCategories = computed(() => {
|
||||
return categories.value!.map((category) => {
|
||||
return {
|
||||
name: category.name,
|
||||
slug: category.slug,
|
||||
children: category.subcategorys.map((sub) => {
|
||||
return {
|
||||
id: sub.id,
|
||||
name: sub.name,
|
||||
slug: sub.slug,
|
||||
};
|
||||
}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user