Commit 695c207fea2c80a9147635a14ed71878f8364482
1 parent
73b0b379
Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element' 报错处理
Showing
1 changed file
with
6 additions
and
1 deletions
ant-design-vue-jeecg/src/components/layouts/TabLayout.vue
... | ... | @@ -186,7 +186,12 @@ |
186 | 186 | }, |
187 | 187 | tabCallBack() { |
188 | 188 | this.$nextTick(() => { |
189 | - triggerWindowResizeEvent() | |
189 | + //update-begin-author:taoyan date: 20201211 for:【新版】online报错 JT-100 | |
190 | + setTimeout(()=>{ | |
191 | + //省市区组件里面给window绑定了个resize事件 导致切换页面的时候触发了他的resize,但是切换页面,省市区组件还没被销毁前就触发了该事件,导致控制台报错,加个延迟 | |
192 | + triggerWindowResizeEvent() | |
193 | + },20) | |
194 | + //update-end-author:taoyan date: 20201211 for:【新版】online报错 JT-100 | |
190 | 195 | }) |
191 | 196 | }, |
192 | 197 | editPage(key, action) { |
... | ... |