refactor: 优化仪表板组件拖拽判断,防止出现控制台异常打印

This commit is contained in:
wangjiahao 2022-09-26 16:14:29 +08:00
parent b2f752fde0
commit 3dae4b9868

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)
}