请教一下build的时候提示 :rendering pages...ReferenceError: location is not defined 用的copy方式,node版本16。 详情如下: 但是文件又可以正常生成。Activity airene commented on Apr 9, 2024 airene on Apr 9, 2024 Owner 可以了 看:57daf8e location属于浏览器的属性 👍1 aireneclosed this as ...
Fixed: correctly compute hlocation by @mtdvlpr in #24 New Contributors @mtdvlpr made their first contribution in #26 Full Changelog: https://github.com/lando/vitepress-theme-default-plus/compare/v1.0.0-beta.38...v1.0.0-beta.39 v1.0.0-beta.38 - February 15, 2024 Fixed layouts resoluti...
location.href.includes('/#/')) { const newUrl = window.location.href.replace(/\/#\//, '/').replace(/\?id=/, '#'); window.history.replaceState({}, '', newUrl); await router.go(newUrl); } }); <template> <DefaultTheme.Layout/> </template> 19 changes: 19 additions &...
window.location.reload() // for example, refresh the page }) @@ -111,7 +110,7 @@ During dev, simply navigate or link to `/nested/` - it works as expected, just l During build, all you need to do is to specify multiple `.html` files as entry points: ```js ```js twoslash...
If you call `event.preventDefault()`, the error will not be thrown. ```js ```js twoslash window.addEventListener('vite:preloadError', (event) => { window.location.reload() // for example, refresh the page }) @@ -111,7 +110,7 @@ During dev, simply navigate or link to `/...
If you call `event.preventDefault()`, the error will not be thrown. ```js ```js twoslash window.addEventListener('vite:preloadError', (event) => { window.location.reload() // for example, refresh the page }) @@ -111,7 +110,7 @@ During dev, simply navigate or link to `/...