From 9b70ef8757e0e0a733cc7946477510031d9cd479 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Mon, 10 Nov 2025 17:33:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=90=83=E5=B1=80icon=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ListCard/index.tsx | 2 +- src/components/SearchBar/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/ListCard/index.tsx b/src/components/ListCard/index.tsx index 012636f..e0a27ac 100644 --- a/src/components/ListCard/index.tsx +++ b/src/components/ListCard/index.tsx @@ -57,7 +57,7 @@ const ListCard: React.FC = ({ // 处理地点截断,确保固定信息始终显示 const displayLocation = useMemo(() => { - if (!location) return ''; + if (!location) return null; // 直接返回 null,不渲染 // 获取屏幕宽度,用于计算实际容器宽度 const systemInfo = Taro.getSystemInfoSync(); diff --git a/src/components/SearchBar/index.tsx b/src/components/SearchBar/index.tsx index d8b74d5..f18e8f7 100644 --- a/src/components/SearchBar/index.tsx +++ b/src/components/SearchBar/index.tsx @@ -25,7 +25,7 @@ const SearchBarComponent = (props: IProps) => { clearable={false} leftIn={ - + } right={