Merge pull request #2569 from bisubus/steps-named-routes-fix

Fix current tab for named routes in Steps
pull/2603/head
Tuğçe Küçükoğlu 2022-06-01 10:24:44 +03:00 committed by GitHub
commit a6acfb3de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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, {