Vue secondary routing configuration

1. Add children configuration on the basis of first-level routing

       redirect: route redirection (that is, which page is displayed by default)

2. Combining vue's rout-link tag to achieve jump

       to="/parent route/child route"

3. After clicking, the route will automatically add a class name (and switch state)

       Class name: .router-link-active

      Combining routing redirection (redirect) to realize clicking to switch font color, background and other states.

2. Combining vue's rout-link tag to achieve jump

  to="/parent route/child route"

3. After clicking, the route will automatically add a class name (and switch state)

  Class name: .router-link-active

  Combined with routing redirection, click to switch font color, background and other states.

If it is useful, please like it, follow it and add to favorites (。・ω・。)ノ♡

Guess you like

Origin blog.csdn.net/CCKing7/article/details/122435497