diff --git a/docs/site/utils/iframe-router.js b/docs/site/utils/iframe-router.js index 29e61a07d..88bc7be42 100644 --- a/docs/site/utils/iframe-router.js +++ b/docs/site/utils/iframe-router.js @@ -34,7 +34,7 @@ export function initIframeRouter() { // should preserve hash for anchor if (window.vueRouter.currentRoute.path !== path) { - window.vueRouter.replace(path); + window.vueRouter.replace(path).catch(() => {}); } }; }