Merge pull request #506 from dataease/pr@dev@refactor_堆叠项不允许指标拖入

refactor: 堆叠项不允许指标拖入
This commit is contained in:
XiaJunjie2020 2021-08-03 17:34:00 +08:00 committed by GitHub
commit f9291ec651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1352,7 +1352,7 @@ export default {
return resultNode return resultNode
}, },
addStack(e) { addStack(e) {
this.dragCheckType(this.dimensionData, 'd') this.dragCheckType(this.view.extStack, 'd')
if (this.view.extStack && this.view.extStack.length > 1) { if (this.view.extStack && this.view.extStack.length > 1) {
this.view.extStack = [this.view.extStack[0]] this.view.extStack = [this.view.extStack[0]]
} }