Home > front end >  The path of the vue why will happen in the address bar has changed and unchanged page
The path of the vue why will happen in the address bar has changed and unchanged page

Time:12-10

Now in the learning Vue, watching video, the teacher explained to the project of actual combat, click on the bottom of the tabbar change routing, the corresponding component change content, but I wrote just changed the routing in the address bar, content did not change, and the teacher wrote it is not to come out,

CodePudding user response:

Really is just the same with the teacher? I wonder: is you didn't write above & lt; Routerview> , two, routing jump, one is the replace, a push, the replace is change can't jump, push to load a new component content, focusing on the first item, there is a problem, to open the console, it will tell you where is wrong, no problem, please post code, than this "you like, I guess" efficiency will directly a lot, thank you!

CodePudding user response:

reference 1/f, henan good response:
really is just the same with the teacher? I wonder: is you didn't write above & lt; Routerview> , two, routing jump, one is the replace, a push, the replace is change can't jump, push to load a new component content, focusing on the first item, there is a problem, to open the console, it will tell you where is wrong, no problem, please post code, than this "you like, I guess" efficiency will directly a lot, thank you!


The top one

CodePudding user response:

It is written & lt; Routerview> Routing jump, two, use & lt; The router - link to="/home" & gt; Three, the console not an error, in the address bar of the path has changed and the same page

CodePudding user response:

The
reference 3 floor @ Xiao 's blog response:
is wrote & lt; Routerview> Routing jump, two, use & lt; The router - link to="/home" & gt; Three, the console not an error, in the address bar of the path has changed and unchanged page


Why can't post code to see? Post code is not clear?

CodePudding user response:

Changed the address bar is the router - the link tag up effect, didn't show also did not complain, most likely because routing no corresponding right, I also am such, routing is found to be issued after the inspection after the component as the conponent
  • Related