fix: 公共链接以新开页面方式跳转后返回上一级无效

This commit is contained in:
fit2cloud-chenyw 2024-01-31 11:58:40 +08:00
parent 8eed1b36ea
commit 717651d21b

View File

@ -184,7 +184,10 @@ export default {
window.location.reload() window.location.reload()
return false return false
} else { } else {
this.$router.back(-1) const parentUrl = localStorage.getItem('beforeJumpUrl')
localStorage.removeItem('beforeJumpUrl')
window.location.href = parentUrl
window.location.reload()
} }
}, },
exportPDF() { exportPDF() {