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
commit ff5f8eb08c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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