diff --git a/src/components/tabmenu/TabMenu.vue b/src/components/tabmenu/TabMenu.vue index 0ab8e8498..b9ffdc9fa 100755 --- a/src/components/tabmenu/TabMenu.vue +++ b/src/components/tabmenu/TabMenu.vue @@ -72,12 +72,9 @@ export default { index: index }); }, - isActive(item) { - return this.activeRoute.startsWith(item.to); - }, getItemClass(item, index) { return ['p-tabmenuitem', item.class, { - 'p-highlight': this.isActive(item) || this.d_activeIndex === index, + 'p-highlight': this.d_activeIndex === index, 'p-disabled': this.disabled(item) }]; }, @@ -118,11 +115,6 @@ export default { } }, - computed: { - activeRoute() { - return this.$route.path; - } - }, directives: { 'ripple': Ripple }