Skip to content

Commit 5bb2958

Browse files
committed
fix: 修复agent-ui 联网查询无结果展示问题
1 parent 189b9fe commit 5bb2958

File tree

1 file changed

+1
-1
lines changed
  • apps/miniprogram-agent-ui/miniprogram/components/agent-ui

1 file changed

+1
-1
lines changed

apps/miniprogram-agent-ui/miniprogram/components/agent-ui/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686
已匹配 {{item.db_len}} 张数据表
8787
</view>
8888
<!-- 联网搜索 -->
89-
<FoldedCard wx:if="{{item.search_info}}" initStatus="{{false}}" showBgColor="{{true}}">
89+
<FoldedCard wx:if="{{item.search_info && item.search_info.search_results}}" initStatus="{{false}}" showBgColor="{{true}}">
9090
<view slot="title" style="opacity: 0.7;font-size: 14px;display: flex; align-items: center; gap: 8px;">
9191
<image src="./imgs/search.svg" mode="aspectFill" style="width: 36rpx;height: 36rpx;" />
9292
<text>已参考 {{item.search_info.search_results.length}} 个网页</text>

0 commit comments

Comments
 (0)