Skip to content

Commit

Permalink
Merge pull request #409 from suraj-webkul/version-selectbox
Browse files Browse the repository at this point in the history
fix version change select box issue.
  • Loading branch information
devansh-webkul authored Nov 6, 2024
2 parents 57fb2c3 + 6f5b439 commit 9b042b8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/.vuepress/theme/components/NavLinks.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,14 @@ export default {
let currentPath = this.$route.path.split('/');
this.version = currentPath[1] || '2.2';
this.currentVersion();
},
watch: {
$route() {
this.currentVersion();
}
},
computed: {
Expand Down Expand Up @@ -178,6 +186,10 @@ export default {
this.$router.push(currentPath.join('/'));
},
currentVersion() {
this.version = this.$route.path.split('/')[1] || '2.2';
}
},
}
</script>
Expand Down

0 comments on commit 9b042b8

Please sign in to comment.