Fix state

This commit is contained in:
René Preuß
2022-10-30 14:27:53 +01:00
parent 11570c9832
commit ed44357418
5 changed files with 23 additions and 8 deletions

14
stores/menu.js Normal file
View File

@@ -0,0 +1,14 @@
import {defineStore} from 'pinia';
export const useMenuStore = defineStore('menu', {
state: () => {
return {
thirdLevelLinks: []
}
},
actions: {
updateThirdLevelLinks(links) {
this.thirdLevelLinks = links;
},
},
})