Query is similar to get. After the jump, the parameters will be spliced after the page url, similar to? id=1, can be passed like this if it is not important, the password or the like is still used to refresh the page with params. The id is still there
Params is similar to post. After the jump, the parameters will not be spliced after the page url, but the page id will disappear after refreshing the page.
3. this.$router.replace() (the usage is the same as above, push)
4. this.$router.go(n)
5. Difference
this.$router.push jumps to the specified url path, and wants to add a record to the history stack, click back to return to the previous page
this.$router.replace jumps to the specified url path, but there will be no record in the history stack. Clicking to return will jump to the previous page (that is, directly replacing the current page)
this.$router.go(n) Jump forward or backward n pages, n can be a positive or negative integer