Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the pit of MENU menu in elementUI

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of how to solve the pit of the MENU menu in elementUI, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value, I believe you will have something to gain after reading this article on how to solve the pit of the MENU menu in elementUI. Let's take a look.

Requirements: click the button on the current page to jump to the home page and assign a value to the default-active bound in menu

Problem: the page has jumped over, but the menu selection has not changed at all

Solution: directly bind the route of the current page to default-active, while changing index to the current route, so that when you jump to the page through the non-click navigation menu, there is no need to manually change the selected items of the navigation menu, it will select the tab item of the current page, perfect solution!

Note: the router attribute is important, and so is the default-active= "this.$route.path".

Home article timeline Live according to footprints About my message board. The background management article on "how to solve the hole of the MENU menu in elementUI" ends here. Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "how to solve the pit of the MENU menu in elementUI". If you want to learn more knowledge, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report