Fixed format of events

This commit is contained in:
Torsten Schulz
2024-06-23 17:32:45 +02:00
parent 692e989861
commit 8b89d8b800
26 changed files with 455 additions and 157 deletions

View File

@@ -24,10 +24,12 @@ export default {
await this.loadMenuData();
this.$router.push({ path: '/' }); // Zurück zur Startseite oder eine andere Seite, um sicherzustellen, dass der Router neu geladen wird
const routes = this.$store.state.menuData.map(item => {
return {
path: item.link,
component: () => import(`../components/${item.component}.vue`)
};
if (item.component) {
return {
path: item.link,
component: () => import(`../components/${item.component}.vue`)
};
}
});
routes.forEach(route => router.addRoute(route)); // Neue Routen hinzufügen
}