fix: migrations
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<UNavigationMenu orientation="vertical" type="single" :items="items" class="data-[orientation=vertical]:w-72" :ui="{
|
||||
root:''
|
||||
}"/>
|
||||
root: ''
|
||||
}" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
@@ -39,9 +39,10 @@ function adaptMenu(menu: NavigationMenuItem[]) {
|
||||
if (item.children && item.children.length > 0) {
|
||||
item.open = path && path.includes(item.category_id) ? true : openAll.value
|
||||
adaptMenu(item.children);
|
||||
|
||||
item.children.unshift({
|
||||
label: item.label, icon: 'i-lucide-book-open', popover: item.label, to: {
|
||||
name: 'admin-products-category', params: {
|
||||
name: item.params.to, params: {
|
||||
category_id: item.params.category_id,
|
||||
link_rewrite: item.params.link_rewrite
|
||||
}
|
||||
@@ -49,7 +50,7 @@ function adaptMenu(menu: NavigationMenuItem[]) {
|
||||
})
|
||||
} else {
|
||||
item.to = {
|
||||
name: 'admin-products-category', params: {
|
||||
name: item.params.to, params: {
|
||||
category_id: item.params.category_id,
|
||||
link_rewrite: item.params.link_rewrite
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user