关闭融合页面关闭历史记录页面
parent
12db782153
commit
7b475b4873
|
@ -629,8 +629,15 @@ export default {
|
|||
const routeData = this.$router.resolve({ path })
|
||||
this.screenshotWindow = window.open(routeData.href, '_blank')
|
||||
})
|
||||
window.addEventListener("beforeunload",() => {
|
||||
if (this.screenshotWindow) {
|
||||
this.screenshotWindow.close()
|
||||
}
|
||||
})
|
||||
|
||||
},
|
||||
beforeDestroy() {
|
||||
console.log('beforeDestroy',this.screenshotWindow)
|
||||
if (this.screenshotWindow) {
|
||||
this.screenshotWindow.close()
|
||||
}
|
||||
|
@ -645,6 +652,7 @@ export default {
|
|||
FusionEvent.$off('removeAnnotation')
|
||||
FusionEvent.$off('imageLocation')
|
||||
FusionEvent.$off('getScreenshots')
|
||||
window.removeEventListener("beforeunload")
|
||||
},
|
||||
methods: {
|
||||
|
||||
|
|
Loading…
Reference in New Issue