The problem of using the menu bar of iview frame in vue

as shown in the figure, I used the menu bar component of ivew in vue
figure 1. I selected the content on the right side of the login log to display the contents of the login log, which is normal

.

then I set up a @ click route on the account profile div and jump to the nested default page. These are normal

.

however, the "Login Log" option in the menu bar is still selected

my question is, when I click on the div of "account Information", how can I know the selected status of the menu bar? the div of "account Information" is my custom div

.
Feb.26,2021

bind events to menu and dynamically set the active-name property


Menu component has an active-name attribute which means that the current item is selected


Let me see the screenshot of your code.

Menu