Fix way to routing, using only one array ! ...continue
This commit is contained in:
@@ -2,6 +2,7 @@ import Vue from 'vue'
|
||||
import { Watch } from 'vue-property-decorator'
|
||||
import { GlobalStore } from '../../store/Modules'
|
||||
import Component from 'vue-class-component'
|
||||
import { static_data } from '../../db/static_data'
|
||||
|
||||
export default class MenuOne extends Vue {
|
||||
|
||||
@@ -29,7 +30,7 @@ export default class MenuOne extends Vue {
|
||||
|
||||
public setParentVisibilityBasedOnRoute(parent) {
|
||||
parent.routes.forEach((item) => {
|
||||
if (this.$route.path === item.route) {
|
||||
if (this.$route.path === item.path) {
|
||||
parent.show = true
|
||||
return
|
||||
}
|
||||
@@ -43,4 +44,8 @@ export default class MenuOne extends Vue {
|
||||
return text
|
||||
}
|
||||
|
||||
get static_data(){
|
||||
return static_data
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user