split routes vuex and shopware
private parseRoutes(routes: any[]): any[] { const result = []; for (const route of routes) { if (route.children) { result.push(...route.children); } } return result; } const routes = this.parseRoutes(this.router.config);