This commit is contained in:
ZhuJW
2026-07-10 18:55:55 +08:00
commit fce40c7d6c
317 changed files with 170079 additions and 0 deletions
@@ -0,0 +1,10 @@
import type { useAppStore } from '~/stores/app.ts'
export const LayoutMenuKey = Symbol('LayoutMenu')
export function useLayoutMenuProvide(layoutMenu: ReturnType<typeof useLayoutMenu>, appStore: ReturnType<typeof useAppStore>) {
provide(LayoutMenuKey, { layoutMenu, appStore })
}
export function useLayoutMenuInject() {
return inject(LayoutMenuKey, {} as any)
}