Fix way to routing, using only one array ! ...continue

This commit is contained in:
Paolo Arena
2019-07-18 13:22:23 +02:00
parent a80bbe3236
commit 116703d6cc
13 changed files with 593 additions and 70 deletions

View File

@@ -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
}
}