fix(nuxt): use fullPath instead of empty string in router hmr (#30500)

This commit is contained in:
Vuk Marjanovic 2025-01-11 22:12:31 +01:00 committed by GitHub
parent f357622fec
commit da9a0b1da7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)