From a7587a892fc1f57bbe7c1b8b715576a59d14d2ec Mon Sep 17 00:00:00 2001 From: zhcnyuyang Date: Tue, 10 Jun 2025 19:59:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E6=9B=B4=E5=A4=9A=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E5=B0=B1=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ExpListContent.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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';