Merge pull request #2569 from bisubus/steps-named-routes-fix
Fix current tab for named routes in Stepspull/2603/head
commit
a6acfb3de6
|
@ -64,7 +64,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
isActive(item) {
|
isActive(item) {
|
||||||
return this.activeRoute === item.to || this.activeRoute === item.to + '/' ;
|
return item.to ? this.$router.resolve(item.to).path === this.$route.path : false;
|
||||||
},
|
},
|
||||||
getItemClass(item) {
|
getItemClass(item) {
|
||||||
return ['p-steps-item', item.class, {
|
return ['p-steps-item', item.class, {
|
||||||
|
|
Loading…
Reference in New Issue