From d2d73043e18bc613fe2c2542adf43da47429a78d Mon Sep 17 00:00:00 2001 From: aihe <961836564@qq.com> Date: Fri, 2 Aug 2024 15:55:53 +0800 Subject: [PATCH] uu --- common/util.js | 6 ++++-- components/tpx-search/tpx-search.vue | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) 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: {