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={