The first time vue-router is added to the URL is the domain name /#/path, and the second click is the domain name /?#/path

Problem The path to load for the first time is 

The second time when you click the button after finishing the logic operation is

The reason for this is that the triggered logical operation is in the button of the form 

The solution is to take out the elements that perform jump logic operations in the form and place them outside the form, and then remove them inside.

Guess you like

Origin blog.csdn.net/qq_37564189/article/details/115790087