From 46bac1769ef34b9e1f9711ec6475049c3b39e015 Mon Sep 17 00:00:00 2001 From: junjie Date: Thu, 9 Dec 2021 12:05:01 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=A7=86=E5=9B=BE):=20=E5=90=8C=E7=8E=AF?= =?UTF-8?q?=E6=AF=94=E5=89=8D=E7=AB=AFUI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/chart/components/drag-item/QuotaItem.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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