mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
fix: nested redirect in spa
This commit is contained in:
parent
53134cd9dd
commit
4ec99ef6f6
@ -586,6 +586,12 @@ async function mountApp(__app) {
|
||||
}
|
||||
|
||||
// Push the path and then mount app
|
||||
router.push(path, () => mount(), (err) => console.error(err))
|
||||
router.push(path, () => mount(), (err) => {
|
||||
if (typeof err === 'undefined') {
|
||||
mount()
|
||||
} else {
|
||||
console.error(err)
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user