fix: 增加 浏览器 resize 清除方法

This commit is contained in:
@changcode
2022-08-17 10:46:10 +08:00
parent f33dbae49d
commit 28e91d37f0
7 changed files with 12 additions and 1 deletions

View File

@@ -470,6 +470,7 @@ export default {
},
beforeUnmount () {
clearTimeout(this.timer)
window.removeEventListener('resize', this.resize)
}
}
</script>