mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-07 09:22:27 +00:00
Fix issue #1629
This commit is contained in:
parent
604dfc95de
commit
9e4f864e4d
@ -562,10 +562,12 @@ async function mountApp(__app) {
|
|||||||
return
|
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) {
|
if (!path) {
|
||||||
normalizeComponents(router.currentRoute, router.currentRoute)
|
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()
|
mountApp()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user