Merge pull request #7933 from dataease/pr@dev@fix_pb_link_jump

fix: 公共链接以新开页面方式跳转后返回上一级无效
This commit is contained in:
fit2cloud-chenyw 2024-01-31 12:02:28 +08:00 committed by GitHub
commit 7fcc6294d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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() {