From b34af3da0bdacbd26aaebbbb46bdcb9289f171f1 Mon Sep 17 00:00:00 2001 From: zhcnyuyang Date: Tue, 10 Jun 2025 19:54:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=98=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ExpListContent.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/ExpListContent.vue b/src/components/ExpListContent.vue index 407d8fb..a1611f2 100644 --- a/src/components/ExpListContent.vue +++ b/src/components/ExpListContent.vue @@ -53,10 +53,13 @@ export default defineComponent({ this.isLoading = false; }); }, - isActiveRoute(routename) { + 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; + }, + toExamples:function(){ + window.location.href='/Examples'; } }, mounted() { @@ -84,6 +87,15 @@ export default defineComponent({ + + + + +