refactor navigation-entry and use them in other nav items

This commit is contained in:
Henry Jameson 2022-08-30 00:15:42 +03:00
commit 768b3ea14f
4 changed files with 121 additions and 153 deletions

View file

@ -22,6 +22,7 @@ const NavigationEntry = {
},
computed: {
routeTo () {
if (!this.item.route && !this.item.routeObject) return null
if (this.item.routeObject) {
return this.item.routeObject
}