diff --git a/frontend/src/views/chart/components/drag-item/QuotaItem.vue b/frontend/src/views/chart/components/drag-item/QuotaItem.vue index 16d079cc7e..565412392a 100644 --- a/frontend/src/views/chart/components/drag-item/QuotaItem.vue +++ b/frontend/src/views/chart/components/drag-item/QuotaItem.vue @@ -172,10 +172,7 @@ export default { } }, watch: { - 'chart.xaxis': function() { - this.isEnableCompare() - }, - 'chart.extStack': function() { + 'chart': function() { this.isEnableCompare() } }, @@ -198,7 +195,7 @@ export default { const t2 = extStack.filter(ele => { return ele.deType === 1 }) - if (t1.length > 0 || t2.length > 0) { + if ((t1.length > 0 || t2.length > 0) && this.chart.type !== 'text' && this.chart.type !== 'gauge' && this.chart.type !== 'liquid') { this.disableEditCompare = false } else { this.disableEditCompare = true