From 341695fa8ba60d877441b566d52e13796f7e65c8 Mon Sep 17 00:00:00 2001 From: zhangyao Date: Fri, 21 Jul 2023 17:19:48 +0800 Subject: [PATCH] fix: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复编辑指标时报错问题 --- .../forewarning/indicator-config/modules/warning-scope.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/page/main/forewarning/indicator-config/modules/warning-scope.vue b/src/page/main/forewarning/indicator-config/modules/warning-scope.vue index be4c7ad..df29bac 100644 --- a/src/page/main/forewarning/indicator-config/modules/warning-scope.vue +++ b/src/page/main/forewarning/indicator-config/modules/warning-scope.vue @@ -199,10 +199,10 @@ watch( ); // 选择第一级,获取第二级数据 const chooseTreeFirst = (index, data, isInfo = false) => { - state.form.warningScopeRows[index].lastOptionsLoading = true; let i = ""; // 是否是父组件传过来的默认展示数据 if (!isInfo) { + state.form.warningScopeRows[index].lastOptionsLoading = true; inputRef.value[index].focus(); i = state.form.warningScopeRows[index].firstOptions.findIndex((e) => e.label == data.label); state.form.warningScopeRows[index].firstOptions[i].isLoading = true; @@ -223,8 +223,8 @@ const chooseTreeFirst = (index, data, isInfo = false) => { } }) .finally(() => { - state.form.warningScopeRows[index].lastOptionsLoading = false; if (i === "") return; + state.form.warningScopeRows[index].lastOptionsLoading = false; state.form.warningScopeRows[index].firstOptions[i].isLoading = false; }); }; -- 2.26.0