The value passed by router-link params cannot be received.

clipboard.png

clipboard.png

clipboard.png

after the corresponding page is printed, the value passed by params does not have any parameters, but query does. Please ask for help

HTML

< router-link: to= "{name:"report1",params: {save:"true",name:"11"}, query: {tt:" "}}" class= "download" tag= "a" target= "_ blank" @ click.native= "setBrowseID" >
View report
< / router-link >

rotuer.js
{

path:"/report",
name:"report1",
component:() => import("@/components/report/index"),
meta: { requiresAuth: true }

}

Jun.14,2021

A refreshed page in params memory (such as pressing f5) is gone
have you refreshed the page?


path:'/ report/:save'


a tag target= "_ blank". The params itself is saved in memory, and the new tab will not be stored after the jump. Thank you, A she.

Menu