Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element' 报错处理

This commit is contained in:
zhangdaiscott 2020-12-11 18:59:42 +08:00
parent 73b0b37941
commit 695c207fea
1 changed files with 6 additions and 1 deletions

View File

@ -186,7 +186,12 @@
},
tabCallBack() {
this.$nextTick(() => {
triggerWindowResizeEvent()
//update-begin-author:taoyan date: 20201211 for:新版online报错 JT-100
setTimeout(()=>{
//省市区组件里面给window绑定了个resize事件 导致切换页面的时候触发了他的resize但是切换页面省市区组件还没被销毁前就触发了该事件导致控制台报错加个延迟
triggerWindowResizeEvent()
},20)
//update-end-author:taoyan date: 20201211 for:新版online报错 JT-100
})
},
editPage(key, action) {