Record front-end groping--Vue3 page jump with parameters

Vue3 page jump with parameters

insert image description here

insert image description here
First, add a button, and then use the router global routing to jump to the page with parameters. First, configure the page information that needs to be jumped in the index.js file of the router: locate the
insert image description here
jump according to the defined name attribute (previously use The problem is that the path cannot always be passed as undefined, but it can jump), and the params parameter is passed.
insert image description here
Use the OnMounted method directly on another page, and execute it immediately after rendering, and use the route of the current page to obtain the previously passed parameters.
insert image description here
You can realize the page jump pull with parameters

Guess you like

Origin blog.csdn.net/qq_44627822/article/details/128535271