update
This commit is contained in:
@@ -3,7 +3,7 @@ import { defineStore } from 'pinia'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import { convertRouteToMenu } from '@/utils/route'
|
||||
import { routes } from '@/router'
|
||||
import type { MenuItemModel } from '@/utils/interfaces'
|
||||
import type { MenuItemModel } from '@/types/menu'
|
||||
import { splitRoutePath } from '@/utils/texts'
|
||||
|
||||
export const useMenuStore = defineStore('menu', () => {
|
||||
@@ -15,7 +15,7 @@ export const useMenuStore = defineStore('menu', () => {
|
||||
const menuSelected = ref(route.fullPath)
|
||||
const toggleSidebar = () => (sidebarOpen.value = !sidebarOpen.value)
|
||||
const toggleSidebarMenu = (path: string, newExpanded: boolean): void => {
|
||||
console.log('expanded', path);
|
||||
// console.log('expanded', path);
|
||||
|
||||
const toggleItemExpanded = (items: MenuItemModel[]): void => {
|
||||
for (const item of items) {
|
||||
|
Reference in New Issue
Block a user