Use Vue Router to pass parameters, be redirected, and lose parameters. Has any boss ever encountered such a strange problem, QAQ?

The jump code in the

1Vue component is as follows
clipboard.png

router.js

clipboard.png
route
clipboard.png

PS: passing parameters using query also jumps to a path with no parameters

has a boss ever encountered such a strange problem? QAQ

Jul.07,2022

Delete /: info
of router.js path or do not delete, change push
this.$router.push ({

)
    path: `/editInfo/${info}`,

})
try


well, I found that the reason is that every time I read beforeMount and beforeUpdate in the App.vue file, I read route.path, assign a value to a variable, and then modify it, and finally the value of this variable changes route.path.
this is so weird.

Menu