Fixed format of events
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user