current position:Home>Vue URL jump page with parameters

Vue URL jump page with parameters

2022-04-29 10:04:12CSDN Q & A

http://localhost:8080/#/?colorTheme=RetailBlack
First of all, I'm in url Enter manually on the ?colorTheme=RetailBlack, Then I click on the current page , Jump to another page , I want to be on another page or on another page url Also with ?colorTheme=RetailBlack, How can I operate it




Take the answer :

If you're using vue-router Words , You can handle it in the global hook of your route , stay next Previously, all the parameters of the previous route were put into the next one query Go inside . And then execute next function


copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/112/202204221741099254.html

Random recommended