mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-06 21:10:38 +00:00
Fix issue #1629
This commit is contained in:
parent
604dfc95de
commit
9e4f864e4d
@ -562,10 +562,12 @@ async function mountApp(__app) {
|
||||
return
|
||||
}
|
||||
|
||||
render.call(_app, router.currentRoute, router.currentRoute, path => {
|
||||
// First render on client-side
|
||||
render.call(_app, router.currentRoute, router.currentRoute, (path) => {
|
||||
// If not redirected
|
||||
if (!path) {
|
||||
normalizeComponents(router.currentRoute, router.currentRoute)
|
||||
fixPrepatch.call(_app, router.currentRoute, router.currentRoute)
|
||||
// Dont call fixPrepatch.call(_app, router.currentRoute, router.currentRoute) since it's first render
|
||||
mountApp()
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user