From 72dfe261db74f386ec87845420fa02622ca65422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E6=B4=AA?= <2498601771@qq.com> Date: Thu, 29 Dec 2022 14:43:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=88=B7=E6=96=B0=E5=99=A8=E9=80=89=E6=8B=A9=E5=90=8E=E5=88=87?= =?UTF-8?q?=E6=8D=A2=E9=A1=B5=E9=9D=A2=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/Panel.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/charts2/Panel.vue b/src/views/charts2/Panel.vue index 43555961..04fae141 100644 --- a/src/views/charts2/Panel.vue +++ b/src/views/charts2/Panel.vue @@ -330,9 +330,11 @@ export default { }, timeRefreshChange () { // 不是自选时间 - if (!this.$refs.dateTimeRange.isCustom) { - const value = this.timeFilter.dateRangeValue - this.$refs.dateTimeRange.quickChange(value) + if (this.$refs.dateTimeRange) { + if (!this.$refs.dateTimeRange.isCustom) { + const value = this.timeFilter.dateRangeValue + this.$refs.dateTimeRange.quickChange(value) + } } else { this.timeFilter = JSON.parse(JSON.stringify(this.timeFilter)) }