We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6da5e73 commit e5e29f6Copy full SHA for e5e29f6
src/components/page/navbar.vue
@@ -3,7 +3,7 @@
3
<div id="nav-content">
4
<el-menu
5
id="menu"
6
- :default-active="activeIndex"
+ :default-active="$route.path"
7
:router="true"
8
class="el-menu-demo"
9
mode="horizontal"
@@ -64,13 +64,12 @@ export default {
64
name: 'NavBar',
65
data() {
66
return {
67
- activeIndex: '/'
68
};
69
},
70
components: {
71
UserLogout,
72
UserAvatar
73
- }
+ },
74
75
</script>
76
0 commit comments