We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e00c551 + ca9283b commit 22de70bCopy full SHA for 22de70b
src/components/ParentMultiselect.vue
@@ -27,14 +27,12 @@ export default {
27
...mapState([
28
'routes',
29
'componentMap',
30
- 'activeComponent'
+ 'activeComponent',
31
+ 'activeRoute',
32
+ 'routes'
33
]),
34
options () {
- const routes = Object.keys(this.routes)
- const exceptions = new Set(['App', ...routes])
35
- return Object.keys(this.componentMap).filter(component => {
36
- if (!exceptions.has(component)) return component
37
- })
+ return this.routes[this.activeRoute].map(component => component.componentName)
38
}
39
},
40
methods: {
0 commit comments