Skip to content

Commit f1afb5c

Browse files
committed
destroy event
1 parent eb8da71 commit f1afb5c

File tree

1 file changed

+3
-0
lines changed
  • web/src/js/view/newhome/module/workspace

1 file changed

+3
-0
lines changed

web/src/js/view/newhome/module/workspace/index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ export default {
177177
})()
178178
}
179179
},
180+
beforeDestroy(){
181+
window.onresize = null;
182+
},
180183
watch: {
181184
'listWrap': function(val){ //监听容器宽度变化
182185
this.pageSize = Math.floor(val / 252)

0 commit comments

Comments
 (0)