This commit is contained in:
Jai A
2023-03-28 10:42:03 -07:00
parent 8167f6f232
commit 9ff3ab1a2b
2 changed files with 5 additions and 3 deletions

View File

@@ -81,8 +81,8 @@ export default {
pickLink() {
this.activeIndex = this.query
? this.filteredLinks.findIndex(
(x) => (x.href === '' ? undefined : x.href) === this.$route.path[this.query]
)
(x) => (x.href === '' ? undefined : x.href) === this.$route.path[this.query]
)
: this.filteredLinks.findIndex((x) => x.href === decodeURIComponent(this.$route.path))
if (this.activeIndex !== -1) {