mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-21 07:59:33 +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
|
// Push the path and then mount app
|
||||||
router.push(path, () => mount(), (err) => {
|
router.push(path, () => mount(), (err) => {
|
||||||
if (typeof err === 'undefined') {
|
if (!err) return mount()
|
||||||
mount()
|
|
||||||
} else {
|
|
||||||
console.error(err)
|
console.error(err)
|
||||||
}
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user