Home > Article > Web Front-end > Vue-highlight setting method for routing navigation menu bar
Below I will share with you an article on how to set the highlight of the Vue-routing navigation menu bar. It has a good reference value and I hope it will be helpful to everyone.
As shown below:
By default, the routing navigation menu will automatically add router-link-exact-active to the current menu and router-link-active classes.
We can modify the class name of router-link-active through linkActiveClass.
Add the configuration item linkActiveClass: 'mui-active' in the routing rule configuration, through 'mui-active' from Define the control menu bar switching style
The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.
Related articles:
Example of Ajax verification based on jQuery to verify whether the user name is available
Example of the enter trigger button event function implemented by jQuery
jQuery Cookie implements skin switching function
The above is the detailed content of Vue-highlight setting method for routing navigation menu bar. For more information, please follow other related articles on the PHP Chinese website!