diff --git a/lib/router.js b/lib/router.js index d6e3d718..af3ce479 100644 --- a/lib/router.js +++ b/lib/router.js @@ -108,7 +108,10 @@ export default class Router { throw err } - window.history[method]({ route }, null, url) + if (getURL() !== url) { + window.history[method]({ route }, null, url) + } + this.route = route this.set(url, { ...data, props }) return true