init
This commit is contained in:
@@ -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)
|
||||
}
|
||||
Reference in New Issue
Block a user