Merge pull request #3186 from dataease/pr@dev@refactor_component-drage

refactor: 优化仪表板组件拖拽判断,防止出现控制台异常打印
This commit is contained in:
Junjun
2022-09-26 17:00:30 +08:00
committed by GitHub

View File

@@ -731,14 +731,14 @@ export default {
},
// private 监控dragging resizing
dragging(val) {
if (this.enabled) {
if (this.enabled && this.curComponent) {
this.curComponent.optStatus.dragging = val
this.$store.commit('setScrollAutoMove', 0)
}
},
// private 监控dragging resizing
resizing(val) {
if (this.enabled) {
if (this.enabled && this.curComponent) {
this.curComponent.optStatus.resizing = val
this.$store.commit('setScrollAutoMove', 0)
}