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!