update route methods

This commit is contained in:
Dede Fuji Abdul
2023-10-19 16:38:43 +07:00
parent f336f51887
commit db38765126
6 changed files with 93 additions and 30 deletions

View File

@ -1,10 +1,9 @@
import { onMounted, ref } from 'vue'
import { defineStore } from 'pinia'
import type { MenuItemModel } from '@/utils/interfaces'
import { useRoute } from 'vue-router'
import { convertRouteToMenu } from '@/utils/route'
import { routes } from '@/router'
import type { MenuItemModel } from '@/utils/interfaces'
export const useMenuStore = defineStore('menu', () => {
const route = useRoute()