diff --git a/common/util.js b/common/util.js index 098b295..a9d9c42 100644 --- a/common/util.js +++ b/common/util.js @@ -115,8 +115,10 @@ const setAddresModalParam = (data = {})=> { addressNameCodeMap.map((t, index)=> { let name = data[t.nameKey] let code = data[t.codeKey] - name && (regIds[index] = code); - code && (regNames[index] = name); + if(name && code) { + regIds[index] = code + regNames[index] = name + } }) return { regIds, diff --git a/components/tpx-search/tpx-search.vue b/components/tpx-search/tpx-search.vue index 0fad17f..ce09c5e 100644 --- a/components/tpx-search/tpx-search.vue +++ b/components/tpx-search/tpx-search.vue @@ -37,7 +37,7 @@ }, bgColor: { default () { - return '#f2f2f2' + return '#FFF' } }, height: {