There is no router-link-active when this.$router.push hops to rout

set the route, the route that jumps in router-link will have this effect, but there are some interfaces I want to judge the situation to jump, so I use this.$router.push, but there is no such state after the page jumps. What is the problem?

  .router-link-active {
    color: rgb(254,0,127)
  }
  
  

clipboard.png

clipboard.png

Mar.04,2021

router-link-active is the CSS class name used when setting up the activation of links, and it needs to be used with < router-link >. You can't use a tag in the example, you can use < router-link >, there is an event attribute that declares events that can be used to trigger navigation, and write your logic inside. For more information, please see https://router.vuejs.org/zh-c.

.
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-1b37f6c-2c0ec.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-1b37f6c-2c0ec.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?