fix: nested redirect in spa

This commit is contained in:
Clark Du 2018-01-11 16:59:55 +08:00
parent 53134cd9dd
commit 4ec99ef6f6

View File

@ -586,6 +586,12 @@ async function mountApp(__app) {
} }
// Push the path and then mount 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)
}
})
}) })
} }