In the menu component of iview, if you click GTOne to return to home routing, but the selection effect in Menu-item still exists, how to solve it?

clipboard.png

Apr.28,2022

assume that name is configured on your store list page and is called ShopList and ShopAdd
MenuItem name of page routing name , active-name gets the name of the current page route, so that the page jump menu automatically highlights

.
<Menu mode="vertical" :active-name="$route.name">
    <MenuItem name="ShopList">
        
    </MenuItem>
    <MenuItem name="ShopAdd">
        
    </MenuItem>
</Menu>
Menu