diff --git a/frontend/src/stores/counter.ts b/frontend/src/stores/counter.ts deleted file mode 100644 index b6757ba5723c5b89b35d011b9558d025bbcde402..0000000000000000000000000000000000000000 --- a/frontend/src/stores/counter.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { ref, computed } from 'vue' -import { defineStore } from 'pinia' - -export const useCounterStore = defineStore('counter', () => { - const count = ref(0) - const doubleCount = computed(() => count.value * 2) - function increment() { - count.value++ - } - - return { count, doubleCount, increment } -}) diff --git a/frontend/src/stores/router.ts b/frontend/src/stores/router.ts new file mode 100644 index 0000000000000000000000000000000000000000..e2c2cf652c76efc4ade53bd73fac6b36c70717fe --- /dev/null +++ b/frontend/src/stores/router.ts @@ -0,0 +1,18 @@ +import { ref } from 'vue' +import { defineStore } from 'pinia' + +export interface Menu { + path: string + title: string + hidden: boolean + panel : string + icon: string + subMenus: Menu[] | null +} + +export const routerStore = defineStore('router', () => { + const menus = ref