router.onError(error => {
const targetPath = router.history.pending.fullPath
window.location.href = `/#${targetPath}`
if (process.env.NODE_ENV !== 'development') {
setTimeout(() => {
window.location.reload()
}, 0)
}
})
router.onError(error => {
const targetPath = router.history.pending.fullPath
window.location.href = `/#${targetPath}`
if (process.env.NODE_ENV !== 'development') {
setTimeout(() => {
window.location.reload()
}, 0)
}
})
本文标题:vue项目频繁打包,导致线上路由跳转失败
本文链接:https://www.haomeiwen.com/subject/fomxiktx.html
网友评论