From 782364163310ea478bbc2ee2ef292d5373e4592b Mon Sep 17 00:00:00 2001 From: danshihao Date: Tue, 16 Jul 2024 18:13:21 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E6=9F=A5=E8=AF=A2=E7=BB=84=E4=BB=B6]?= =?UTF-8?q?=20=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/customField/Search.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/customField/Search.vue b/src/components/customField/Search.vue index e1c5425..75114d9 100644 --- a/src/components/customField/Search.vue +++ b/src/components/customField/Search.vue @@ -393,7 +393,9 @@ export default { this.searchList = res.result // 标准状态特殊处理成多选 const standardStateIndex = this.searchList.findIndex(item => item.dbFieldName === 'standard_state') - this.searchList[standardStateIndex].fieldShowType = FieldType.OPTION_MORE.value + if (standardStateIndex !== -1) { + this.searchList[standardStateIndex].fieldShowType = FieldType.OPTION_MORE.value + } this.getOptionsData() // 获取下拉数据 console.log(this.searchList) }