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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bd07d0-30d1e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bd07d0-30d1e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?