mirror of
https://github.com/bitinflow/ui.git
synced 2026-05-03 05:38:31 +00:00
chore(release): v0.0.3
This commit is contained in:
15
src/runtime/stores/menu.ts
Normal file
15
src/runtime/stores/menu.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import {defineStore} from 'pinia';
|
||||
import {ThirdLevelLink} from "../../types";
|
||||
|
||||
export const useMenuStore = defineStore('menu', {
|
||||
state: () => {
|
||||
return {
|
||||
thirdLevelLinks: [] as Array<ThirdLevelLink>
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
updateThirdLevelLinks(links: Array<ThirdLevelLink>) {
|
||||
this.thirdLevelLinks = links;
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user