fix: 1.对浏览器resize 事件进行优化2.更改kBps为Kbps

This commit is contained in:
@changcode
2022-04-26 14:00:16 +08:00
parent 089ecf86a2
commit 17ac9640ed
16 changed files with 52 additions and 27 deletions

View File

@@ -313,7 +313,8 @@ export default {
}
},
mounted () {
window.addEventListener('resize', this.$_.debounce(this.resize, 200))
this.debounceFunc = this.$_.debounce(this.resize, 200)
window.addEventListener('resize', this.debounceFunc)
this.chartOption = _.cloneDeep(entityListLineOption)
this.entityData = _.cloneDeep(this.entity)
setTimeout(() => {
@@ -323,6 +324,6 @@ export default {
})
},
beforeUnmount () {
window.removeEventListener('resize', this.resize)
window.removeEventListener('resize', this.debounceFunc)
}
}