mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 17:35:57 +00:00
fix(nuxt): use fullPath
instead of empty string in router hmr (#30500)
This commit is contained in:
parent
f357622fec
commit
da9a0b1da7
@ -642,7 +642,7 @@ if (import.meta.hot) {
|
||||
for (const route of routes) {
|
||||
router.addRoute(route)
|
||||
}
|
||||
router.replace('')
|
||||
router.replace(router.currentRoute.value.fullPath)
|
||||
}
|
||||
if (routes && 'then' in routes) {
|
||||
routes.then(addRoutes)
|
||||
|
Loading…
Reference in New Issue
Block a user