查看更多按钮就位

This commit is contained in:
zhcnyuyang 2025-06-10 19:59:12 +08:00
parent b34af3da0b
commit a7587a892f

View File

@ -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';