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