this.$router

router.go(n)
The parameter of this method is an integer, which means how many steps forward or backward in the history record, similar to window.history.go(n)

router.push(location)
To navigate to a different URL, use the router.push method. This method adds a new record to the history stack, so when the user clicks the browser's back button, they go back to the previous URL.

router.replace(location)
Similar to router.push, the only difference is that it doesn't add a new record to the history, but just like its method name -- replaces the current history record.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325074920&siteId=291194637