The NavMenu navigation menu of elementUI jumps to other pages and keeps the current selected state
need:
- For example, to jump to a page, it is already selected
- Then at this time, select other states in it
- We also want to keep the same selection
accomplish:
step:
- Turn the :default-active call in the el-menu tag into a calling method
-
before:
-
Now:
-
- In the method, determine the path of the page if you want to jump
- Then return the path we need to display
- my data