mirror of
https://github.com/bitinflow/ui.git
synced 2026-03-13 13:45:59 +00:00
chore(release): v0.0.3
This commit is contained in:
9
src/runtime/composables/index.ts
Normal file
9
src/runtime/composables/index.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import {useMenuStore} from "../stores/menu";
|
||||
import {MenuOptions} from "../../types";
|
||||
|
||||
export const useMenu = (options: MenuOptions) => {
|
||||
const menu = useMenuStore()
|
||||
if (options.thirdLevelLinks) {
|
||||
menu.updateThirdLevelLinks(options.thirdLevelLinks)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user