Home > front end >  VUE VUE - routing hop Router watch monitoring method will perform two times
VUE VUE - routing hop Router watch monitoring method will perform two times

Time:05-16

Watch: {
'$route (to and from) {
Enclosing httpGetUserInfo ();
}
},
Methods: {
GoToChangePage ($id) {
//only equal to his jump your modify information page:
If (this. Is_selfs) {
This $router. Push ('/user - change - the info).
}
}
}
As above, the code is executed twice,,, first open does not perform, to enter the page link back again, in entering this page into 2 pages will be executed twice,,,

CodePudding user response:

What reason is this excuse me, solved?
  • Related