mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
misc: Refacto to use less chars
This commit is contained in:
parent
421070d385
commit
5dd7591e3f
@ -587,11 +587,8 @@ async function mountApp(__app) {
|
||||
|
||||
// Push the path and then mount app
|
||||
router.push(path, () => mount(), (err) => {
|
||||
if (typeof err === 'undefined') {
|
||||
mount()
|
||||
} else {
|
||||
console.error(err)
|
||||
}
|
||||
if (!err) return mount()
|
||||
console.error(err)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user