In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
This article introduces the knowledge of "how to use the activeindex selection and redirection of the menu bar on the right side of EasyCVS". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
In practice, when the menu bar on the right side of EasyCVS is switched in the top menu bar, the activeindex of the menu bar will change. At this time, if you open the menu bar on the right, you also need to switch to the corresponding menu bar item, and you also need to redirect to the corresponding activeIndex when the page is refreshed.
First of all, the right menu bar is the el-menu component that uses elementUi, which comes with the default-active property. When the top navigation bar switches, you can give its activeIndex value to the right navigation bar default-active value.
The redirection is to detect the routing address to obtain the routing address corresponding to the item of each navigation bar, and then assign the activity value of each route to the default-active of the navigation bar.
The reference code is as follows:
Real-time preview of live video user management space management object storage / navigation bar redirect RouteRedirection () {var path = this.$route.path Let paths = [{path: "/ scrren", type: 0}, {path: "/ live/list", type: 1}, {path: "/ user", type: 2}, {path: "/ space", type: 3}, {path: "/ bucket", type: 4}, {path: "/ oss/list", type: 5},] For (const i in paths) {if (path.indexOf (paths [I] .path)! =-1) {this.activeIndex = paths.type; this.activeIndexRight = JSON.stringify (this.activeIndex); console.log (this.activeIndex, "routing"); return;}
EasyCVS is not currently open to the public, but interested users can learn about EasyCVR first. EasyCVR already supports the access of RTSP, GB28181, Ehome, Haikang SDK, Dahua SDK and other protocol devices, while the private protocols of other mainstream manufacturers are constantly expanding. Therefore, in the long run, EasyCVR has high use value and adaptability.
That's all for "how to use the activeindex selection and redirection in the menu bar on the right side of EasyCVS". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.