From cdf4133c8d2fe71c7323dfd7dd31d098b1b59b18 Mon Sep 17 00:00:00 2001 From: zhujiyan <17812234322@163.com> Date: Fri, 27 Sep 2024 09:31:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=86=E5=8F=B2=E8=B6=8B=E5=8A=BF=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=BB=98=E8=AE=A42=E8=B0=90=E6=B3=A2=E6=AC=A1?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/govern/device/control/tabs/trend.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/views/govern/device/control/tabs/trend.vue b/src/views/govern/device/control/tabs/trend.vue index 43ce1fb..d036359 100644 --- a/src/views/govern/device/control/tabs/trend.vue +++ b/src/views/govern/device/control/tabs/trend.vue @@ -602,6 +602,10 @@ const initSearchFormIndexAndCount = (list: any) => { if (kk.harmStart && kk.harmEnd) { range(0, 0, 0) countData.value[index].countOptions = range(kk.harmStart, kk.harmEnd, 1) + //添加默认值 + if (countData.value[index].count.length == 0) { + countData.value[index].count = [countData.value[index].countOptions[0]] + } } }) }