查看更多按钮就位
This commit is contained in:
parent
b34af3da0b
commit
a7587a892f
@ -55,8 +55,8 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
isActiveRoute:function(routename) {
|
isActiveRoute:function(routename) {
|
||||||
// Example: Apply style if route name starts with 'user-'
|
// Example: Apply style if route name starts with 'user-'
|
||||||
console.log('Current route name:', this.$route.name, 'Comparing with:', routename);
|
console.log('Current route name:', this.$route.path, 'Comparing with:', routename);
|
||||||
return this.$route.name === routename;
|
return this.$route.path === routename;
|
||||||
},
|
},
|
||||||
toExamples:function(){
|
toExamples:function(){
|
||||||
window.location.href='/Examples';
|
window.location.href='/Examples';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user