Silently update url without triggering route in vue-router
问题 I need to update the hash of the url, without actually triggering the vue-router to go to that route. Something in the likes of: router.replace('my/new/path', {silent:true}) This would update the url to .../#/my/new/path , but the router itself would not route to that path. Is there an elegant way to achieve this? 回答1: The Vue router is either on or off, so you cannot "make it not detect certain urls". That said, Vue does re-use components if it doesn't need to destroy them and allows you to