How to update hash and querys in url without triggering route.path
update?
#1687
-
When using router, there might be a lot of computed variables and watchers based on In vuepress2, we use the following lines to achieve it: However, these codes will trigger the whole update of So my concern is how can we update hash and query to let |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you watch the path and it doesn't change, the watcher won't trigger: watch(() => route.path, () => {
// ...
}) |
Beta Was this translation helpful? Give feedback.
If you watch the path and it doesn't change, the watcher won't trigger: