How to solve the problem that the address of vue router routing hook does not match with window location href

before page jump: /
after page jump: / login

not using timer: accessing window location href in after each is before jumping /

use timer: accessing window location href in after each is / login after jump

May.13,2022

what do you do with window location href? the routing information is all in $route


.

Route jump is asynchronous, use

this.$nextTick(() => {
//  href
})
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-1eb74cd-2643.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-1eb74cd-2643.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?