diff --git a/src/components/ExpListContent.vue b/src/components/ExpListContent.vue index a1611f2..076d700 100644 --- a/src/components/ExpListContent.vue +++ b/src/components/ExpListContent.vue @@ -55,8 +55,8 @@ export default defineComponent({ }, isActiveRoute:function(routename) { // Example: Apply style if route name starts with 'user-' - console.log('Current route name:', this.$route.name, 'Comparing with:', routename); - return this.$route.name === routename; + console.log('Current route name:', this.$route.path, 'Comparing with:', routename); + return this.$route.path === routename; }, toExamples:function(){ window.location.href='/Examples';