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) }